--- import { Icon } from 'astro-icon/components'; import WidgetWrapper from '../ui/WidgetWrapper.astro'; import type { CallToAction, Widget } from '~/types'; import Headline from '../ui/Headline.astro'; interface Props extends Widget { title?: string; subtitle?: string; tagline?: string; callToAction?: CallToAction; } const { title = await Astro.slots.render('title'), subtitle = await Astro.slots.render('subtitle'), tagline = await Astro.slots.render('tagline'), callToAction = await Astro.slots.render('callToAction'), id, isDark = false, classes = {}, bg = await Astro.slots.render('bg'), } = Astro.props as Props; ---
{ typeof callToAction === 'string' ? ( ) : ( callToAction && callToAction.text && callToAction.href && ( ) ) }