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

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

  return (
    <AppShell
      pathname="/purchases"
      title="Pembelian Reguler"
      description="Modul ini menangani pembelian reguler multi-baris dengan status draft dan diajukan untuk barang masuk biasa."
    >
      <PurchasesClient currencyCode={settings.currency_code} />
    </AppShell>
  );
}
