--- import { Icon } from 'astro-icon/components' import { cn } from '../lib/cn' import type { HTMLAttributes } from 'astro/types' export type Props = HTMLAttributes<'a'> & { label: string icon?: string href: string } const { label, icon, href, class: className, ...htmlProps } = Astro.props --- {icon && } {label}