mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 09:16:22 +02:00
13 lines
343 B
TypeScript
13 lines
343 B
TypeScript
|
|
import { atom } from "jotai";
|
||
|
|
|
||
|
|
export interface SelectedFolder {
|
||
|
|
path: string;
|
||
|
|
name: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
// Atom to control the folder watch dialog open state
|
||
|
|
export const folderWatchDialogOpenAtom = atom(false);
|
||
|
|
|
||
|
|
// Atom to store initial folder selection for the dialog
|
||
|
|
export const folderWatchInitialFolderAtom = atom<SelectedFolder | null>(null);
|