--- import { Icon } from 'astro-icon/components'; import { Picture } from '@astrojs/image/components'; import type { Content } from '~/types'; const { title = await Astro.slots.render('title'), subtitle = await Astro.slots.render('subtitle'), tagline, content = await Astro.slots.render('content'), items = [], image = await Astro.slots.render('image'), isReversed = false, isAfterContent = false, } = Astro.props as Content; ---
{ (title || subtitle || tagline) && (
{tagline && (

)} {title && (

)} {subtitle && (

)}

) }
{content &&
} { items && (
{items.map(({ title: title2, description, icon }) => (
{title2 &&

{title2}

} {description &&

}

))}
) }