--- import { icons, type IconName } from "../config/icons"; interface Props { name: IconName; class?: string; "class:list"?: any; } const { name, class: className, "class:list": classList } = Astro.props; const svg = icons[name]; if (!svg) { throw new Error(`Icon "${name}" not found in icon registry`); } ---