--- import { Icon } from 'astro-icon/components'; import { twMerge } from 'tailwind-merge'; import type { CallToAction } from '~/types'; const { variant = 'secondary', target, text = Astro.slots.render("default"), icon = '', class: className = '', ...rest } = Astro.props as CallToAction; const variants = { primary: 'btn-primary' , secondary: 'btn-secondary', tertiary: 'btn btn-tertiary', link: 'cursor-pointer hover:text-primary', }; --- {icon && }