import { notFound } from "next/navigation";
import { db } from "@/lib/db";
import { PlaceholderModule } from "@/components/dashboard/placeholder-module";

export default async function OrderPage({ params }: { params: Promise<{ id: string }> }) {
  const { id } = await params;
  const order = await db.order.findUnique({ where: { id }, select: { id: true } });
  if (!order) notFound();
  return <PlaceholderModule moduleKey="orders" detail={order.id} />;
}
