--- import { Icon } from 'astro-icon'; interface Item { title?: string; description?: string; icon?: string; } export interface Props { title?: string; subtitle?: string; highlight?: string; items: Array; } const { title = await Astro.slots.render('title'), subtitle = await Astro.slots.render('subtitle'), highlight, items = [], } = Astro.props; ---
{ (title || subtitle || highlight) && (
{highlight && (

)} {title && (

)} {subtitle && (

)}

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

}

)) }