--- 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 make email addresses clickable function makeEmailsClickable(text: string | undefined): string { if (!text) return ''; const emailRegex = /([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/g; return text.replace(emailRegex, '$1'); } --- { typeof callToAction === 'string' ? ( ) : ( callToAction && callToAction.text && callToAction.href && ) } { items && items.length ? items.map(({ title: title2, description, icon }, index) => ( {icon ? : index + 1} )) : '' }