/** تصویر پیش‌فرض اشتراک‌گذاری سایت: لوگوی زهورا روی زمینه سفید */
import { ImageResponse } from "next/og";
import { OG_HEADERS, OG_SIZE, wordmarkDataUri } from "../shared";

export const dynamic = "force-static";

export async function GET() {
  const logo = await wordmarkDataUri();
  return new ImageResponse(
    (
      <div style={{ width: "100%", height: "100%", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", background: "#ffffff", gap: 36 }}>
        {/* eslint-disable-next-line @next/next/no-img-element */}
        <img src={logo} width={640} height={93} alt="" />
        <div style={{ fontSize: 26, letterSpacing: 10, color: "#6b6b68" }}>BEAUTY · SKINCARE · FRAGRANCE</div>
      </div>
    ),
    { ...OG_SIZE, headers: OG_HEADERS },
  );
}
