"use client"; // The dashboard's four-square tools launcher. Same six tools as the old shell's // SecondaryNav, but instead of navigating to old routes it opens them as // in-dashboard panels (ToolPanel) via onOpen — so you never leave the new // interface. import { useState } from "react"; import { Blocks, CreditCard, LayoutGrid, Share2, ShieldCheck, Users, Zap } from "lucide-react"; import type { ToolKey } from "./ToolPanel"; const ITEMS: { key: ToolKey; label: string; icon: typeof Zap }[] = [ { key: "skills", label: "Skills", icon: Zap }, { key: "apps", label: "Apps", icon: Blocks }, { key: "topologies", label: "Topologies", icon: Share2 }, { key: "approvals", label: "Approvals", icon: ShieldCheck }, { key: "team", label: "Team", icon: Users }, { key: "credits", label: "Credits", icon: CreditCard }, ]; export function ToolsLauncher({ onOpen }: { onOpen: (t: ToolKey) => void }) { const [open, setOpen] = useState(false); return (
{open ? ( <> ))} ) : null}
); }