mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-16 14:06:49 +01:00
9 lines
257 B
TypeScript
9 lines
257 B
TypeScript
import type { WorkspaceMeta } from '@yaakapp-internal/models';
|
|
import { atom, useAtomValue } from 'jotai';
|
|
|
|
export const workspaceMetaAtom = atom<WorkspaceMeta | null>(null);
|
|
|
|
export function useWorkspaceMeta() {
|
|
return useAtomValue(workspaceMetaAtom);
|
|
}
|