Raw
1 import { HookDataMap } from "@/types/ui"
2
3 export const useToggleState: HookDataMap = [
4 {
5 value: "state",
6 type: {
7 type: "object",
8 name: "StateData",
9 shape:
10 "[\n state: boolean,\n open: () => void,\n close: () => void,\n toggle: () => void\n]",
11 },
12 },
13 ]
14
15 export const usePrompt: HookDataMap = [
16 {
17 value: "dialog",
18 type: {
19 type: "function",
20 signature: `async (props: PromptProps): Promise<boolean>`,
21 },
22 description: "Async function used to display a new confirmation dialog.",
23 },
24 ]