import { AppShell } from "@/components/layout/app-shell";
import { LotDetailClient } from "@/features/lots/components/lot-detail-client";
import { getAppSettings } from "@/lib/app-settings";

type LotDetailPageProps = {
  params: Promise<{ id: string }>;
};

export default async function LotDetailPage({ params }: LotDetailPageProps) {
  const { id } = await params;
  const settings = await getAppSettings();

  return (
    <AppShell
      pathname="/lots"
      title="Lot Detail"
      description="Detail lot sebagai pusat identitas, qty balance, source receipt, dan label operasional."
    >
      <LotDetailClient id={id} currencyCode={settings.currency_code} />
    </AppShell>
  );
}
