"use client"; import { TabBar } from "./tabbar"; import { MediaView } from "./views/media"; import { useMediaPanelStore, Tab } from "./store"; import { TextView } from "./views/text"; import { SoundsView } from "./views/sounds"; import { StickersView } from "./views/stickers"; import { Separator } from "@/components/ui/separator"; import { SettingsView } from "./views/settings"; import { Captions } from "./views/captions"; export function MediaPanel() { const { activeTab } = useMediaPanelStore(); const viewMap: Record = { media: , sounds: , text: , stickers: , effects: (
Effects view coming soon...
), transitions: (
Transitions view coming soon...
), captions: , filters: (
Filters view coming soon...
), adjustment: (
Adjustment view coming soon...
), settings: , }; return (
{viewMap[activeTab]}
); }