--- import type { Content as Props } from '~/types'; import Headline from '../ui/Headline.astro'; import WidgetWrapper from '../ui/WidgetWrapper.astro'; import Image from '~/components/common/Image.astro'; import Button from '~/components/ui/Button.astro'; import ItemGrid from '../ui/ItemGrid.astro'; import type { CallToAction } from '~/types'; export interface Props { id?: string; title?: string; title2?: string; subtitle?: string; tagline?: string; content?: string; actions?: string | CallToAction[]; image?: string | unknown; // TODO: find HTMLElementProps } const { title = await Astro.slots.render('title'), subtitle = await Astro.slots.render('subtitle'), tagline, content = await Astro.slots.render('content'), callToAction, items = [], columns, image = await Astro.slots.render('image'), isReversed = false, isAfterContent = false, id, isDark = false, classes = {}, bg = await Astro.slots.render('bg'), } = Astro.props; ---
{content &&
} { callToAction && (
) }