"use client"; import { Separator } from "@/components/ui/separator"; import { type Tab, useAssetsPanelStore, } from "@/components/editor/panels/assets/assets-panel-store"; import { TabBar } from "./tabbar"; import { MediaView } from "./views/assets"; import { SettingsView } from "./views/settings"; import { TransitionsView } from "./views/transitions"; import { SoundsView } from "@/sounds/components/assets-view"; import { StickersView } from "@/stickers/components/assets-view"; import { TextView } from "@/text/components/assets-view"; import { EffectsView } from "@/effects/components/assets-view"; import { FEATURES } from "@/features"; export function AssetsPanel() { const { activeTab } = useAssetsPanelStore(); const viewMap: Record = { media: , sounds: FEATURES.sounds ? : null, text: , stickers: FEATURES.stickers ? : null, effects: FEATURES.effects ? : null, lens: FEATURES.effects ? : null, transitions: , settings: , }; return (
{viewMap[activeTab]}
); }