"use client"; import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger, } from "@/components/ui/sheet"; import { Button } from "@/components/ui/button"; import { useSceneStore } from "@/stores/scene-store"; import { Check } from "lucide-react"; export function ScenesView({ children }: { children: React.ReactNode }) { const { scenes, currentScene, switchToScene } = useSceneStore(); const handleSceneSwitch = async (sceneId: string) => { try { await switchToScene({ sceneId }); } catch (error) { console.error("Failed to switch scene:", error); } }; return ( {children} Scenes Switch between scenes in your project
{scenes.length === 0 ? (
No scenes available
) : (
{scenes.map((scene) => ( ))}
)}
); }