import { getTranslations } from "next-intl/server"; import { Image } from "lucide-react"; import { FaviconForm } from "./favicon-form"; import { prisma } from "@/lib/prisma"; export const dynamic = "force-dynamic"; export default async function AdminFaviconPage() { const t = await getTranslations("pages.admin.favicon"); let faviconUrl: string | null = null; try { const setting = await prisma.websiteSetting.findUnique({ where: { key: "cms_favicon" } }); faviconUrl = setting?.value ?? null; } catch { faviconUrl = null; } return (

{t("title")}

{t("subtitle")}

); }