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

export default function OperatingExpensesPage({
  searchParams
}: {
  searchParams?: Promise<Record<string, string | string[] | undefined>>;
}) {
  return (
    <CostRecordsPage
      searchParams={searchParams}
      title="Operating Expenses"
      description="Track regular rental-operation expenses and post-rental repairs separately from purchase and renovation costs."
      addTitle="Add Operating Expense"
      listTitle="Operating Expense Records"
      returnTo="/operating-expenses"
      allowedPhases={operatingCostPhases}
      categoryTypes={["OPERATING_EXPENSE"]}
      discountLabel="Discount / Credit"
    />
  );
}
