--- import type { CollectionEntry } from "astro:content"; import { getEntries } from "astro:content"; type Props = { citations: CollectionEntry<"blog">["data"]["relatedPosts"] }; const citations = await getEntries(Astro.props.citations ?? []); --- { citations.length > 0 && ( ) }