import { Pin, PinOff } from "lucide-react"; import { cn } from "@/lib/utils"; import type { usePinnedNavigation } from "@/hooks/usePinnedNavigation"; export type PinControls = Pick, "keys" | "canPin" | "toggle">; interface NavigationPinButtonProps { pinKey: string; label: string; pins: PinControls; className: string; } export function NavigationPinButton({ pinKey, label, pins, className }: NavigationPinButtonProps) { const pinned = pins.keys.has(pinKey); const Icon = pinned ? PinOff : Pin; const action = `${pinned ? "Unpin" : "Pin"} ${label}`; return ( ); }