import { MousePointer2, Move, CirclePlus, Box, Scan, PenTool, RectangleHorizontal, Spline, Undo2, Redo2, Activity, AlertTriangle, Boxes, Building2, Camera, Check, ChevronDown, ChevronUp, ChevronLeft, ChevronRight, Circle, ClipboardList, Copy, Database, Download, Eye, EyeOff, ExternalLink, FileText, FolderOpen, Globe2, Image, Inbox, Info, KeyRound, Layers, LayoutDashboard, ListChecks, LocateFixed, LockKeyhole, MailPlus, Map, Maximize2, Minimize2, Network, PanelTop, Pencil, Play, Pin, Power, Plus, Minus, RefreshCw, RotateCw, Save, Search, Settings, ShieldCheck, SlidersHorizontal, Square, Terminal, Trash2, UploadCloud, UserCircle, UsersRound, Video, X, type LucideIcon, type LucideProps, } from "lucide-react"; const icons = { "add-point": CirclePlus, perspective: Box, orthographic: Scan, select: MousePointer2, move: Move, pen: PenTool, rectangle: RectangleHorizontal, curve: Spline, undo: Undo2, redo: Redo2, activity: Activity, alert: AlertTriangle, apps: Boxes, building: Building2, camera: Camera, check: Check, "chevron-down": ChevronDown, "chevron-up": ChevronUp, "chevron-left": ChevronLeft, "chevron-right": ChevronRight, circle: Circle, clipboard: ClipboardList, close: X, copy: Copy, database: Database, pin: Pin, download: Download, edit: Pencil, eye: Eye, "eye-off": EyeOff, expand: Maximize2, external: ExternalLink, file: FileText, folder: FolderOpen, globe: Globe2, grid: LayoutDashboard, image: Image, inbox: Inbox, info: Info, key: KeyRound, layers: Layers, list: ListChecks, target: LocateFixed, lock: LockKeyhole, mail: MailPlus, minimize: Minimize2, network: Network, panel: PanelTop, plan: Map, play: Play, power: Power, plus: Plus, minus: Minus, profile: UserCircle, refresh: RefreshCw, "rotate-clockwise": RotateCw, save: Save, search: Search, settings: Settings, shield: ShieldCheck, sliders: SlidersHorizontal, stop: Square, terminal: Terminal, trash: Trash2, upload: UploadCloud, users: UsersRound, video: Video, } satisfies Record; export type IconName = keyof typeof icons; export interface IconProps extends Omit { name: IconName; label?: string; } export function Icon({ name, label, size = 16, strokeWidth = 1.6, fill, ...props }: IconProps) { const IconComponent = icons[name]; const filledTransport = name === "play" || name === "stop"; return ( ); }