import { CostRecordsPage } from "@/components/CostRecordsPage";
import { purchaseCostPhases } from "@/lib/finance";

export default function PurchaseCostsPage({
  searchParams
}: {
  searchParams?: Promise<Record<string, string | string[] | undefined>>;
}) {
  return (
    <CostRecordsPage
      searchParams={searchParams}
      title="Purchase Costs"
      description="Track pre-purchase, closing, and acquisition costs separately from renovation and rental operations."
      addTitle="Add Purchase Cost"
      listTitle="Purchase Cost Records"
      returnTo="/purchase-costs"
      allowedPhases={purchaseCostPhases}
      categoryTypes={["PURCHASE_COST"]}
      discountLabel="Discount / Credit"
    />
  );
}
