summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor/panels/assets/index.tsx
diff options
context:
space:
mode:
authorMaze <167211895+mazeincoding@users.noreply.github.com>2026-01-31 00:20:04 +0100
committerGitHub <noreply@github.com>2026-01-31 00:20:04 +0100
commit7bf0984698e43b9aa2dd879f65951318ed410390 (patch)
treeccf2cd590a47d550152afc07129cb55c71a9ec35 /apps/web/src/components/editor/panels/assets/index.tsx
parent0173db99448d1c4c6415dcf15272e17551b48b04 (diff)
downloadopencut-7bf0984698e43b9aa2dd879f65951318ed410390.tar.gz
codebase overhaul (#697)
Diffstat (limited to 'apps/web/src/components/editor/panels/assets/index.tsx')
-rw-r--r--apps/web/src/components/editor/panels/assets/index.tsx52
1 files changed, 52 insertions, 0 deletions
diff --git a/apps/web/src/components/editor/panels/assets/index.tsx b/apps/web/src/components/editor/panels/assets/index.tsx
new file mode 100644
index 00000000..9161cb1d
--- /dev/null
+++ b/apps/web/src/components/editor/panels/assets/index.tsx
@@ -0,0 +1,52 @@
+"use client";
+
+import { Separator } from "@/components/ui/separator";
+import { type Tab, useAssetsPanelStore } from "@/stores/assets-panel-store";
+import { TabBar } from "./tabbar";
+import { Captions } from "./views/captions";
+import { MediaView } from "./views/media";
+import { SettingsView } from "./views/settings";
+import { SoundsView } from "./views/sounds";
+import { StickersView } from "./views/stickers";
+import { TextView } from "./views/text";
+
+export function AssetsPanel() {
+ const { activeTab } = useAssetsPanelStore();
+
+ const viewMap: Record<Tab, React.ReactNode> = {
+ media: <MediaView />,
+ sounds: <SoundsView />,
+ text: <TextView />,
+ stickers: <StickersView />,
+ effects: (
+ <div className="text-muted-foreground p-4">
+ Effects view coming soon...
+ </div>
+ ),
+ transitions: (
+ <div className="text-muted-foreground p-4">
+ Transitions view coming soon...
+ </div>
+ ),
+ captions: <Captions />,
+ filters: (
+ <div className="text-muted-foreground p-4">
+ Filters view coming soon...
+ </div>
+ ),
+ adjustment: (
+ <div className="text-muted-foreground p-4">
+ Adjustment view coming soon...
+ </div>
+ ),
+ settings: <SettingsView />,
+ };
+
+ return (
+ <div className="bg-panel flex h-full">
+ <TabBar />
+ <Separator orientation="vertical" />
+ <div className="flex-1 overflow-hidden">{viewMap[activeTab]}</div>
+ </div>
+ );
+}