--- import { Image } from "astro:assets"; import type { CollectionEntry } from "astro:content"; import FormattedDate from "@/components/FormattedDate.astro"; import { t } from "@/i18n/translations"; interface Props { content: CollectionEntry<"post">; language?: string | undefined; } const { content: { data }, language, } = Astro.props; const dateTimeOptions: Intl.DateTimeFormatOptions = { month: "long", }; --- { data.coverImage && (