import { AppShell } from "@/components/layout/app-shell";
import { SalesAllocationClient } from "@/features/sales-allocation/components/sales-allocation-client";
import { getAppSettings } from "@/lib/app-settings";

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

  return (
    <AppShell
      pathname="/sales-allocation"
      title="Alokasi Penjualan"
      description="Pesanan penjualan akan mengambil stok dari satu atau banyak lot, lalu menghitung biaya total berdasarkan alokasi aktual."
    >
      <SalesAllocationClient currencyCode={settings.currency_code} />
    </AppShell>
  );
}
