import { AppShell } from "@/components/layout/app-shell";
import { StockSummaryReportClient } from "@/features/reports/components/stock-summary-report-client";
import { getAppSettings } from "@/lib/app-settings";

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

  return (
    <AppShell
      pathname="/reports/stock-summary"
      title="Laporan Ringkasan Stok"
      description="Laporan dibangun dari alur transaksi inti yang sudah stabil, dimulai dari ringkasan stok per jenis, grade, dan gudang."
    >
      <StockSummaryReportClient currencyCode={settings.currency_code} />
    </AppShell>
  );
}
