From f4e127f2d4fb8e50555be0104f7a5844fb0e2aa3 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Fri, 15 Aug 2025 23:44:19 +0200 Subject: [PATCH] feat: export notice dialog --- apps/web/src/components/editor-header.tsx | 45 +++++++++++++++-------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/apps/web/src/components/editor-header.tsx b/apps/web/src/components/editor-header.tsx index 88deaf0c..bb72f1e1 100644 --- a/apps/web/src/components/editor-header.tsx +++ b/apps/web/src/components/editor-header.tsx @@ -21,6 +21,7 @@ import { FaDiscord } from "react-icons/fa6"; import { useTheme } from "next-themes"; import { TransitionUpIcon } from "./icons"; import { PanelPresetSelector } from "./panel-preset-selector"; +import { Dialog, DialogContent, DialogHeader, DialogTitle } from "./ui/dialog"; export function EditorHeader() { const { activeProject, renameProject, deleteProject } = useProjectStore(); @@ -139,25 +140,39 @@ export function EditorHeader() { } function ExportButton() { + const [isExportDialogOpen, setIsExportDialogOpen] = useState(false); + const handleExport = () => { - // TODO: Implement export functionality - // NOTE: This is already being worked on - console.log("Export project"); - window.open("https://youtube.com/watch?v=dQw4w9WgXcQ", "_blank"); + setIsExportDialogOpen(true); }; return ( - + + + + + Export Project + +
+

+ Export functionality is not ready yet. We're currently working on + a custom pipeline to make this possible. +

+
+
+
+ ); }