import { AppShell } from "@/components/layout/app-shell";
import { PurchaseAnalysisClient } from "@/features/purchase-analysis/components/purchase-analysis-client";
import { getAppSettings } from "@/lib/app-settings";

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

  return (
    <AppShell
      pathname="/purchase-analysis"
      title="Analisis Pembelian"
      description="Analisis batch pembelian untuk memadukan berat beli, penerimaan, hasil lot, biaya operasional, dan laba rugi agen."
    >
      <PurchaseAnalysisClient currencyCode={settings.currency_code} />
    </AppShell>
  );
}
