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

} { items && items.length && items.map(({ title, description, icon }, index) => (
{index !== items.length - 1 ? (
{icon && }
) : (
)}
{title &&

} {description &&

}

)) }
{ image && (typeof image === 'string' ? ( ) : ( )) }