|
1
|
import dynamic from "next/dynamic" |
|
2
|
import * as React from "react" |
|
3
|
|
|
4
|
export type HookRegistryItem = { |
|
5
|
table: React.ComponentType |
|
6
|
} |
|
7
|
|
|
8
|
export const HookRegistry: Record<string, HookRegistryItem> = { |
|
9
|
usePromptReturn: { |
|
10
|
table: dynamic(async () => |
|
11
|
import("./hooks/usePrompt").then((m) => m.Return) |
|
12
|
), |
|
13
|
}, |
|
14
|
useToggleStateProps: { |
|
15
|
table: dynamic(async () => |
|
16
|
import("./hooks/useToggleState").then((m) => m.Props) |
|
17
|
), |
|
18
|
}, |
|
19
|
useToggleStateReturn: { |
|
20
|
table: dynamic(async () => |
|
21
|
import("./hooks/useToggleState").then((m) => m.Return) |
|
22
|
), |
|
23
|
}, |
|
24
|
} |