--- import { Icons } from './icons.ts'; interface Path { d: string; class?: string; } const { name } = Astro.props; const icon = (Icons as any)[name] || {}; const paths: Path[] = icon.paths || []; --- { icon ? ( {icon.title} {paths.map((path) => ( ))} ) : ( 'Icon not found' ) }