import Link from 'next/link'; import { notFound } from 'next/navigation'; import { prisma } from '@/lib/prisma'; import AdminNav from '@/components/AdminNav'; import Chat from '@/components/Chat'; function formatPrice(cents: number) { return `£${(cents / 100).toFixed(2)}`; } export default async function AdminThreadPage({ params }: { params: { id: string } }) { const proof = await prisma.designProof.findUnique({ where: { id: params.id }, include: { product: true }, }); if (!proof) notFound(); return (

{proof.customerName || proof.customerEmail}

{proof.product.name} · qty {proof.quantity} · {formatPrice(proof.unitPrice * proof.quantity)}

{proof.status}
View customer page →
); }