"use client"; import { TooltipProvider } from "@/components/ui/primitives/tooltip"; import { cn } from "@/lib/utils"; import { ControlModes } from "./control-modes"; import { PhaseSwitcher } from "./phase-switcher"; import { StructureTools } from "./structure-tools"; import useEditor from "@/store/use-editor"; import { AnimatePresence, motion } from "motion/react"; import { ItemCatalog } from "../item-catalog/item-catalog"; import { FurnishTools } from "./furnish-tools"; // import { ViewToggles } from "./view-toggles"; export function ActionMenu({ className }: { className?: string }) { const phase = useEditor((state) => state.phase); const mode = useEditor((state) => state.mode); const tool = useEditor((state) => state.tool); const catalogCategory = useEditor((state) => state.catalogCategory); return (
{/* Item Catalog Row - Only show when in build mode with item tool */} {mode === "build" && tool === "item" && catalogCategory && ( )} {phase === "furnish" && mode === "build" && (
)}
{/* Structure Tools Row - Animated */} {phase === "structure" && mode === "build" && (
)}
{/* Control Mode Row - Always visible, centered */}
{/*
*/} {/* */}
); }