import type { SVGProps, ReactNode } from "react"; const PATHS: Record = { search: ( <> ), clipboard: ( <> ), box: ( <> ), edit: ( <> ), check: , trash: ( <> ), close: ( <> ), chart: ( <> ), users: ( <> ), cart: ( <> ), briefcase: ( <> ), tag: ( <> ), document: ( <> ), folder: , clock: ( <> ), lock: ( <> ), "check-circle": ( <> ), "x-circle": ( <> ), cash: ( <> ), }; export type IconName = keyof typeof PATHS; interface IconProps extends Omit, "name"> { name: string; } export default function Icon({ name, className = "w-4 h-4", ...rest }: IconProps) { const content = PATHS[name]; if (!content) return null; return ( ); }