--- import type { CollectionEntry } from 'astro:content'; type Link = CollectionEntry<'projects'>['data']['links'][number]; interface Props { links: Link[]; } const { links } = Astro.props; function isExternal(url: string) { return /^https?:\/\//.test(url); } --- { links.length > 0 && (