Skip to content

Commit 6ec6582

Browse files
committed
docs(layout): comments for get layout hook
1 parent 62e6869 commit 6ec6582

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

electron/renderer/hooks/layouts.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import type { Maybe } from '../../common/types.js';
44
import { runInBackground } from '../lib/async/run-in-background.js';
55
import { usePubSub, useSubscribe } from './pubsub.jsx';
66

7+
/**
8+
* Gets the layout configuration for a given layout name.
9+
* Automatically refreshes the layout when it is saved or deleted.
10+
*/
711
export const useGetLayout = (layoutName: string): Maybe<Layout> => {
812
const [layout, setLayout] = useState<Layout>();
913

0 commit comments

Comments
 (0)