--- import type { CollectionEntry } from "astro:content"; import { t } from "@/i18n/translations"; interface Props { prevPost: CollectionEntry<"post"> | null | undefined; nextPost: CollectionEntry<"post"> | null | undefined; language?: string | undefined; } const { prevPost, nextPost, language } = Astro.props; --- { (prevPost || nextPost) && ( ) }