--- import { Icon } from 'astro-icon/components'; import WidgetWrapper from '~/components/ui/WidgetWrapper.astro'; import Headline from '~/components/ui/Headline.astro'; import Button from '~/components/ui/Button.astro'; import type { Steps as Props } from '~/types'; 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; // Function to detect and wrap email addresses in mailto links function processEmailLinks(text: string): string { const emailRegex = /\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g; return text.replace(emailRegex, (email) => { return `${email}`; }); } ---
{ typeof callToAction === 'string' ? ( ) : ( callToAction && callToAction.text && callToAction.href &&
    { items && items.length ? items.map(({ title: title2, description, icon }, index) => (
  • {icon ? : index + 1}

  • )) : '' }