Skip to content

Commit 418a1f6

Browse files
author
StickyCoolDev
committed
Update
1 parent 0ccdccb commit 418a1f6

File tree

14 files changed

+6350
-103
lines changed

14 files changed

+6350
-103
lines changed

app/editor/page.tsx

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ import { Button } from "@/components/ui/button";
1818
import { IconArrowsMaximize } from "@tabler/icons-react";
1919
import StartNode from "@/components/nodes/Start";
2020
import 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

2230
const initialNodes = [
2331
{
@@ -67,7 +75,8 @@ type EdgeChangeT = EdgeChange<{ id: string; source: string; target: string }>;
6775
export 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

Comments
 (0)