--- import type { CallToAction } from '~/types'; import Button from '~/components/ui/Button.astro'; export interface Props { title?: string; subtitle?: string; tagline?: string; content?: string; callToAction?: string | CallToAction; callToAction2?: string | CallToAction; } const { title = await Astro.slots.render('title'), subtitle = await Astro.slots.render('subtitle'), tagline, content = await Astro.slots.render('content'), callToAction = await Astro.slots.render('callToAction'), callToAction2 = await Astro.slots.render('callToAction2'), } = Astro.props; ---
{ tagline && (

) } { title && (

) }
{ subtitle && (

) }

{ callToAction && (
{typeof callToAction === 'string' ? ( ) : (
) } { callToAction2 && (
{typeof callToAction2 === 'string' ? ( ) : (
) }
{content && }