From be970248686c0af7d8506cba8c64bf507419da3d Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sun, 22 Jun 2025 13:07:02 +0200 Subject: so much stuff??? --- apps/web/src/components/editor-header.tsx | 56 +++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 apps/web/src/components/editor-header.tsx (limited to 'apps/web/src/components/editor-header.tsx') diff --git a/apps/web/src/components/editor-header.tsx b/apps/web/src/components/editor-header.tsx new file mode 100644 index 00000000..f59193d0 --- /dev/null +++ b/apps/web/src/components/editor-header.tsx @@ -0,0 +1,56 @@ +"use client"; + +import Link from "next/link"; +import { Button } from "./ui/button"; +import { ChevronLeft, Download } from "lucide-react"; +import { useProjectStore } from "@/stores/project-store"; +import { useMediaStore } from "@/stores/media-store"; +import { useTimelineStore } from "@/stores/timeline-store"; +import { HeaderBase } from "./header-base"; + +export function EditorHeader() { + const { activeProject } = useProjectStore(); + const { mediaItems } = useMediaStore(); + const { tracks } = useTimelineStore(); + + const handleExport = () => { + // TODO: Implement export functionality + console.log("Export project"); + }; + + const leftContent = ( + + + {activeProject?.name || "Loading..."} + + ); + + const centerContent = ( +
+ {mediaItems.length} media + • + {tracks.length} tracks +
+ ); + + const rightContent = ( + + ); + + return ( + + ); +} -- cgit v1.3.1