import Link from "next/link"; import { getTranslations } from "next-intl/server"; import { notFound } from "next/navigation"; import { deleteShopArticle, updateShopArticle } from "@/actions/admin-shop"; import { prisma } from "@/lib/prisma"; import { Package } from "lucide-react"; export const dynamic = "force-dynamic"; export default async function EditShopArticle({ params }: { params: Promise<{ id: string }> }) { const t = await getTranslations("pages.admin.shop"); const { id } = await params; let pkg: Awaited> = null; try { pkg = await prisma.websiteShopArticles.findUnique({ where: { id: BigInt(id) } }); } catch { notFound(); } if (!pkg) notFound(); return (

{t("editPackageTitle")}

← {t("backToShop")}
); }