import Image from "next/image"; import { getColumnPage } from "@/services/page.service"; export async function ColumnHeading({ type, slug, fallback }: { type: string; slug: string; fallback: string }) { const page = await getColumnPage(type, slug).catch(() => null); return (

{page?.title || fallback}

{page?.intro &&

{page.intro}

}
); } export function PageCover({ image, compact = false }: { image?: { url: string; title: string } | null; compact?: boolean }) { if (!image?.url) return null; return (
{image.title
); } export function PublicationDate({ value }: { value?: string }) { if (!value) return null; const date = new Date(value); if (Number.isNaN(date.getTime())) return null; return ; } export function BlogTags({ tags }: { tags?: string[] }) { if (!tags?.length) return null; return ; }