--- import Icon from 'astro-icon'; import { Picture } from '@astrojs/image/components'; interface Item { title: string; description?: string; icon?: string; } export interface Props { title?: string; subtitle?: string; highlight?: string; content?: string; items?: Array; image?: string | any; // TODO: find HTMLElementProps isReversed?: boolean; isAfterContent?: boolean; } const { title = await Astro.slots.render('title'), subtitle = await Astro.slots.render('subtitle'), highlight, content = await Astro.slots.render('content'), items = [], image = await Astro.slots.render('image'), isReversed = false, isAfterContent = false, } = Astro.props; ---
{ (title || subtitle || highlight) && (
{highlight && (

)} {title && (

)} {subtitle && (

)}

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

{title2}

} {description &&

}

))}
) }