--- import WidgetWrapper from '~/components/ui/WidgetWrapper.astro'; import type { Widget } from '~/types'; import Headline from '~/components/ui/Headline.astro'; import Image from '~/components/common/Image.astro'; interface Props extends Widget { title?: string; subtitle?: string; tagline?: string; image?: { src: string; alt: string; href?: string; target?: string; }; } const { title = await Astro.slots.render('title'), subtitle = await Astro.slots.render('subtitle'), tagline = await Astro.slots.render('tagline'), image, id, isDark = false, classes = {}, bg = await Astro.slots.render('bg'), } = Astro.props; ---
{ image && (
{image.href ? ( {image.alt} ) : ( {image.alt} )}
) }