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

export default async function LotsPage() {
  const settings = await getAppSettings();

  return (
    <AppShell
      pathname="/lots"
      title="Lot Persediaan"
      description="Lot adalah sumber data utama untuk stok aktif, biaya perolehan, hubungan induk-turunannya, dan ketertelusuran."
    >
      <LotsClient currencyCode={settings.currency_code} />
    </AppShell>
  );
}
