--- import Image from '~/components/common/Image.astro'; import Button from '~/components/ui/Button.astro'; import Background from '~/components/ui/Background.astro'; import type { Hero as Props } from '~/types'; const { title = await Astro.slots.render('title'), subtitle = await Astro.slots.render('subtitle'), tagline, content = await Astro.slots.render('content'), actions = await Astro.slots.render('actions'), image = await Astro.slots.render('image'), id, bg = await Astro.slots.render('bg'), } = Astro.props; ---
{ tagline && (

) } { title && (

) }
{subtitle &&

} { actions && (

{Array.isArray(actions) ? ( actions.map((action) => (
)) ) : ( )}
) }
{content && }