import { getAllBolumler } from "@/lib/katalog"; import { createOgSayfaImage, OG_CONTENT_TYPE, OG_SIZE, } from "@/lib/og-sayfa"; import { SON_YIL, TERCIH_YILI } from "@/lib/veri-yillari"; export const alt = "Bölüm taban puanları ve sıralamaları — KolayTercih"; export const size = OG_SIZE; export const contentType = OG_CONTENT_TYPE; export default async function Image({ params, }: { params: Promise<{ slug: string }>; }) { const { slug } = await params; const bolum = getAllBolumler().find((b) => b.slug === slug); const ad = bolum?.ad ?? "Bölüm"; const programSayisi = bolum?.programSayisi; const sayi = programSayisi != null ? `${programSayisi.toLocaleString("tr-TR")} program · ` : ""; return createOgSayfaImage({ eyebrow: "Bölüm", title: `${ad} taban puanları`, description: `${sayi}${SON_YIL} yerleştirme verileri · ${TERCIH_YILI} tercih rehberi`, }); }