--- import { Icon } from 'astro-icon/components'; import Headline from '../ui/Headline.astro'; import { Steps } from '~/types'; import WidgetWrapper from '../ui/WidgetWrapper.astro'; const { title = await Astro.slots.render('title'), subtitle = await Astro.slots.render('subtitle'), tagline, callToAction = await Astro.slots.render('callToAction'), items = [], isReversed = false, id, isDark = false, classes = {}, bg = await Astro.slots.render('bg'), } = Astro.props as Steps; ---
{ typeof callToAction === 'string' ? ( ) : ( callToAction && callToAction.text && callToAction.href && ( {callToAction.icon && } {callToAction.text} ) ) }
    { items && items.length ? items.map(({ title: title2, description, icon }, index) => (
  • {icon ? : index + 1}

  • )) : '' }