We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62e6869 commit 6ec6582Copy full SHA for 6ec6582
electron/renderer/hooks/layouts.tsx
@@ -4,6 +4,10 @@ import type { Maybe } from '../../common/types.js';
4
import { runInBackground } from '../lib/async/run-in-background.js';
5
import { usePubSub, useSubscribe } from './pubsub.jsx';
6
7
+/**
8
+ * Gets the layout configuration for a given layout name.
9
+ * Automatically refreshes the layout when it is saved or deleted.
10
+ */
11
export const useGetLayout = (layoutName: string): Maybe<Layout> => {
12
const [layout, setLayout] = useState<Layout>();
13
0 commit comments