@@ -18,6 +18,14 @@ import { Button } from "@/components/ui/button";
1818import { IconArrowsMaximize } from "@tabler/icons-react" ;
1919import StartNode from "@/components/nodes/Start" ;
2020import LLMNode from "@/components/nodes/LLM" ;
21+ import {
22+ Dialog ,
23+ DialogContent ,
24+ DialogDescription ,
25+ DialogHeader ,
26+ DialogTitle ,
27+ DialogTrigger ,
28+ } from "@/components/ui/dialog" ;
2129
2230const initialNodes = [
2331 {
@@ -67,7 +75,8 @@ type EdgeChangeT = EdgeChange<{ id: string; source: string; target: string }>;
6775export default function Page ( ) {
6876 const [ nodes , setNodes ] = useState ( initialNodes ) ;
6977 const [ edges , setEdges ] = useState ( initialEdges ) ;
70-
78+ const [ nodeEditorSheetVisibility , setnodeEditorSheetVisibility ] =
79+ useState ( false ) ;
7180 const onNodeClick = useCallback ( ( _event : any , node : Node ) => {
7281 alert ( node . id ) ;
7382 } , [ ] ) ;
@@ -119,13 +128,28 @@ export default function Page() {
119128 >
120129 < MiniMap nodeStrokeWidth = { 3 } zoomable pannable />
121130 < Controls />
131+
122132 < Panel position = "top-right" >
123133 < Button onClick = { toogleFullscreen } variant = "outline" >
124134 < IconArrowsMaximize />
125135 </ Button >
126136 </ Panel >
137+
138+ < Panel position = "center-right" >
139+ < Dialog >
140+ < DialogTrigger > Open</ DialogTrigger >
141+ < DialogContent >
142+ < DialogHeader >
143+ < DialogTitle > Are you absolutely sure?</ DialogTitle >
144+ < DialogDescription >
145+ This action cannot be undone. This will permanently delete
146+ your account and remove your data from our servers.
147+ </ DialogDescription >
148+ </ DialogHeader >
149+ </ DialogContent >
150+ </ Dialog >
151+ </ Panel >
127152 </ ReactFlow >
128153 </ div >
129154 ) ;
130155}
131-
0 commit comments