Skip to content

Commit 52c6fef

Browse files
committed
feat: add Help Button skeleton
1 parent fb03278 commit 52c6fef

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/components/DebugUI.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
BugPlayIcon,
3+
FileQuestionMark,
34
PlayIcon,
45
PlusIcon,
56
SquareIcon,
@@ -28,6 +29,7 @@ import { neg } from "@/logic/nodeTypes/neg"
2829
import type { NodeType } from "@/logic/simulation"
2930
import { PopoverClose } from "@radix-ui/react-popover"
3031
import { not } from "@/logic/nodeTypes/not"
32+
import { Dialog, DialogContent, DialogTrigger } from "./ui/dialog"
3133

3234
type NodeInfo = {
3335
name: string
@@ -271,6 +273,28 @@ function DebugUI() {
271273
</Tooltip>
272274
</ButtonGroup>
273275
</TooltipProvider>
276+
277+
<ButtonGroup>
278+
<Dialog>
279+
<DialogTrigger>
280+
<Tooltip delayDuration={500}>
281+
<TooltipTrigger asChild>
282+
<Button
283+
variant={"outline"}
284+
className="hover:text-gray-600 cursor-pointer"
285+
>
286+
<FileQuestionMark />
287+
</Button>
288+
</TooltipTrigger>
289+
<TooltipContent>
290+
{/* TODO: Add Video Here */}
291+
<p>Help</p>
292+
</TooltipContent>
293+
</Tooltip>
294+
</DialogTrigger>
295+
<DialogContent>Help</DialogContent>
296+
</Dialog>
297+
</ButtonGroup>
274298
</ButtonGroup>
275299
<div className="absolute top-10 text-muted-foreground text-nowrap pointer-events-none">
276300
{placingNode

0 commit comments

Comments
 (0)