import { useState } from "react";
import { MenuDock, type MenuDockItem } from "@/components/ui/menu-dock";
export function AppDock({ signOut }: { signOut: () => void }) {
const [path, setPath] = useState<number[]>([]);
const items: MenuDockItem[] = [
{ id: "home", label: "Home", href: "/" },
{
id: "account",
label: "Account",
items: [
{ label: "Profile", href: "/profile" },
{ label: "Sign out", destructive: true, onSelect: () => { signOut(); setPath([]); } },
],
},
];
return <MenuDock items={items} active="home" path={path} onNavigate={setPath} />;
}