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

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

  return (
    <AppShell
      pathname="/consignments"
      title="Titip Jual"
      description="Catat barang yang keluar dibawa sales, lalu tutup setiap item saat terjual, kembali, atau susut."
    >
      <ConsignmentsClient currencyCode={settings.currency_code} />
    </AppShell>
  );
}
