--- import Image from '~/components/common/Image.astro'; import type { CallToAction } from '~/types'; import CTA from '../ui/CTA.astro'; export interface Props { title?: string; subtitle?: string; tagline?: string; content?: string; callToAction?: string | CallToAction; callToAction2?: string | CallToAction; image?: string | any; // TODO: find HTMLElementProps } 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'), image = await Astro.slots.render('image'), } = Astro.props; ---
{ tagline && (

) } { title && (

) }
{subtitle &&

}

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

{ image && (
{typeof image === 'string' ? ( ) : ( )}
) }