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

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

  return (
    <AppShell
      pathname="/purchases/office-buyout"
      title="Pembelian Kantor / Buyout Agen"
      description="Ambil alih lot dari agen menjadi stok kantor penuh, dengan perhitungan otomatis komisi agen hanya jika harga buyout di atas harga MAL."
    >
      <OfficeBuyoutClient currencyCode={settings.currency_code} />
    </AppShell>
  );
}
