import type { SVGProps } from "react"; type IconName = | "home" | "play" | "folder" | "tile" | "bars" | "bars2" | "key" | "cog" | "chev-down" | "chev-right" | "search" | "bell" | "help" | "doc" | "up" | "plus" | "flame" | "check" | "x" | "play-tri" | "rotate" | "more" | "wallet" | "coin" | "download" | "team" | "lightbulb" | "sparkles" | "info" | "arrow-right"; const PATHS: Record = { home: ( <> ), play: , folder: ( <> ), tile: , bars: ( <> ), bars2: , key: ( <> ), cog: ( <> ), "chev-down": , "chev-right": , search: ( <> ), bell: , help: ( <> ), doc: ( <> ), up: , plus: , flame: , check: , x: , "play-tri": , rotate: ( <> ), more: ( <> ), wallet: ( <> ), coin: ( <> ), download: , team: ( <> ), lightbulb: ( <> ), sparkles: ( <> ), info: ( <> ), "arrow-right": , }; interface Props extends Omit, "name"> { name: IconName; size?: number; strokeWidth?: number; } export default function Icon({ name, size = 16, strokeWidth = 1.5, ...rest }: Props) { return ( {PATHS[name]} ); }