mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-10 23:47:12 +02:00
17 lines
432 B
TypeScript
17 lines
432 B
TypeScript
import { atom } from "jotai";
|
|
|
|
/**
|
|
* Edit mode state for CommandLauncher.
|
|
* When set, CommandLauncher opens in edit mode for the specified window.
|
|
*/
|
|
export interface EditModeState {
|
|
windowId: string;
|
|
initialCommand: string;
|
|
}
|
|
|
|
/**
|
|
* Atom to control edit mode in CommandLauncher.
|
|
* Set this to trigger edit mode, null for normal create mode.
|
|
*/
|
|
export const commandLauncherEditModeAtom = atom<EditModeState | null>(null);
|