--- import { Icon } from '@astrojs/starlight/components' interface Props { label: string options: string[] | undefined } const { label, options } = Astro.props --- { options && options.length > 0 && ( {label} {options.map((option) => ( {option} ))} ) }