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

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

  return (
    <AppShell
      pathname="/purchase-realization"
      title="Realisasi Pembelian"
      description="Pantau hasil aktual pembelian sampai penutupan: qty tersisa, pendapatan, penyusutan, buyout kantor, dan laba rugi final agen."
    >
      <PurchaseRealizationClient currencyCode={settings.currency_code} />
    </AppShell>
  );
}
