import type { Metadata } from "next";
import { OrderDetailPageView } from "@/components/orders/OrderDetailPageView";

type Props = {
  params: Promise<{ orderId: string }>;
};

export const metadata: Metadata = {
  title: "Order Details",
};

export default async function OrderDetailPage({ params }: Props) {
  const { orderId } = await params;
  return (
    <main className="mx-auto max-w-4xl px-4 py-8 sm:px-6 lg:px-8">
      <OrderDetailPageView orderId={orderId} />
    </main>
  );
}
