mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-17 23:13:51 +01:00
10 lines
248 B
TypeScript
10 lines
248 B
TypeScript
import type { Folder } from '@yaakapp-internal/models';
|
|
import { useAtomValue } from 'jotai';
|
|
import { atom } from 'jotai/index';
|
|
|
|
export const foldersAtom = atom<Folder[]>([]);
|
|
|
|
export function useFolders() {
|
|
return useAtomValue(foldersAtom);
|
|
}
|