From 59a6c539a150adf9ff9ed3d91854b2bea6e7c517 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Thu, 3 Jul 2025 20:43:23 +0200 Subject: feat: implement media panel with tab navigation --- .../src/components/editor/media-panel/index.tsx | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 apps/web/src/components/editor/media-panel/index.tsx (limited to 'apps/web/src/components/editor/media-panel/index.tsx') diff --git a/apps/web/src/components/editor/media-panel/index.tsx b/apps/web/src/components/editor/media-panel/index.tsx new file mode 100644 index 00000000..f855fa36 --- /dev/null +++ b/apps/web/src/components/editor/media-panel/index.tsx @@ -0,0 +1,56 @@ +"use client"; + +import { TabBar } from "./tabbar"; +import { MediaView } from "./views/media"; +import { useMediaPanelStore, Tab } from "./store"; + +export function MediaPanel() { + const { activeTab } = useMediaPanelStore(); + + const viewMap: Record = { + media: , + audio: ( +
Audio view coming soon...
+ ), + text: ( +
Text view coming soon...
+ ), + stickers: ( +
+ Stickers view coming soon... +
+ ), + effects: ( +
+ Effects view coming soon... +
+ ), + transitions: ( +
+ Transitions view coming soon... +
+ ), + captions: ( +
+ Captions view coming soon... +
+ ), + filters: ( +
+ Filters view coming soon... +
+ ), + adjustment: ( +
+ Adjustment view coming soon... +
+ ), + }; + + return ( +
+ +
{viewMap[activeTab]}
+
+ ); +} -- cgit v1.3.1