--- import type { Pricing as Props } from '~/types'; import Headline from '~/components/ui/Headline.astro'; import WidgetWrapper from '~/components/ui/WidgetWrapper.astro'; import Button from '~/components/ui/Button.astro'; const { title = await Astro.slots.render('title'), subtitle = await Astro.slots.render('subtitle'), tagline, items = [], actions = [], id, isDark = false, classes = {}, bg = await Astro.slots.render('bg'), } = Astro.props; ---
{ items && items.length > 0 && items.map((item, index) => (
{item.title && (

{item.title}

)}
{item.entries && item.entries.length > 0 && ( {item.entries.map((entry) => ( ))}
{entry.price}
)}
)) }
{await Astro.slots.render('disclaimer') && (
)} { actions && actions.length > 0 && (
{actions.map((action) => (
))}
) }