// src/hooks/table/filters/use-payout-table-filters.tsx
import { useTranslation } from "react-i18next";
import { useMemo } from "react";
var usePayoutTableFilters = () => {
  const { t } = useTranslation();
  return useMemo(() => {
    const filters = [];
    const statusFilter = {
      key: "status",
      label: t("fields.status"),
      type: "select",
      multiple: true,
      options: [
        { label: t("payouts.status.pending"), value: "pending" },
        { label: t("payouts.status.processing"), value: "processing" },
        { label: t("payouts.status.paid"), value: "paid" },
        { label: t("payouts.status.failed"), value: "failed" },
        { label: t("payouts.status.canceled"), value: "canceled" }
      ]
    };
    filters.push(statusFilter);
    const dateFilters = [
      { label: t("fields.createdAt"), key: "created_at" },
      { label: t("fields.updatedAt"), key: "updated_at" }
    ].map((f) => ({
      key: f.key,
      label: f.label,
      type: "date"
    }));
    filters.push(...dateFilters);
    return filters;
  }, [t]);
};

export {
  usePayoutTableFilters
};
