--- import { Icon } from 'astro-icon/components'; export interface CallToAction { text: string; href: string; icon?: string; } export interface Props { title?: string; subtitle?: string; description?: string; callToAction?: string | CallToAction; } const { title = await Astro.slots.render('title'), subtitle = await Astro.slots.render('subtitle'), callToAction = await Astro.slots.render('callToAction'), } = Astro.props; ---
{ title && (

) } {subtitle &&

} { typeof callToAction === 'string' ? ( ) : ( callToAction && callToAction.text && callToAction.href && (

) ) }