--- import Icon from '@/atoms/icon'; import type { IconName } from '@/types/icon'; type IconButtonSize = 'small' | 'large'; export interface Props { icon: IconName; target?: astroHTML.JSX.AnchorHTMLAttributes['target']; href: string; size: IconButtonSize; 'aria-label'?: astroHTML.JSX.AnchorHTMLAttributes['aria-label']; } const sizeMap: Record = { small: 'w-7 h-7', large: 'w-9 h-9', }; const { icon, href, target, size, ...rest } = Astro.props; ---