-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathDialog.tsx
More file actions
33 lines (30 loc) · 913 Bytes
/
Dialog.tsx
File metadata and controls
33 lines (30 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import PromptLibrary, { MagiskLibrary } from './Library'
import Dialog from '../Dialog'
interface PromptProps {
isOpen: boolean
onClose: () => void
insertPrompt: (text: string) => void
}
interface MagiskProps {
isOpen: boolean
onClose: () => void
insertMagisk: (text: string) => void
}
export const PromptLibraryDialog = (props: PromptProps) => {
return (
<Dialog title="Prompt Library" open={props.isOpen} onClose={props.onClose} className="w-[800px] min-h-[400px]">
<div className="p-5 overflow-auto">
<PromptLibrary insertPrompt={props.insertPrompt} />
</div>
</Dialog>
)
}
export const MagiskLibraryDialog = (props: MagiskProps) => {
return (
<Dialog title="Magisk Library" open={props.isOpen} onClose={props.onClose} className="w-[800px] min-h-[400px]">
<div className="p-5 overflow-auto">
<MagiskLibrary />
</div>
</Dialog>
)
}