import { ImageResponse } from 'next/og'
import { OgImageContent } from '@/lib/ogImage'

export const size = { width: 1200, height: 630 }
export const contentType = 'image/png'

const TAGLINES: Record<string, string> = {
  tr: 'turistin göremediği yerel bilgi.',
  en: 'the local knowledge tourists never see.',
  ru: 'инсайдерская информация, скрытая от туристов.',
}

export default async function Image({ params }: { params: Promise<{ locale: string }> }) {
  const { locale } = await params
  return new ImageResponse(<OgImageContent tagline={TAGLINES[locale] || TAGLINES.tr} />, size)
}
