"use client";

import ConfirmModal from "../common/ConfirmModal";

export default function ReactivateSellerModal({
  open,
  count,
  loading = false,
  onClose,
  onConfirm,
}: {
  open: boolean;
  count: number;
  loading?: boolean;
  onClose: () => void;
  onConfirm: () => void;
}) {
  const isBulk = count > 1;

  return (
    <ConfirmModal
      open={open}
      title={isBulk ? "Reactivate Selected Sellers" : "Reactivate Seller"}
      description={
        isBulk
          ? "Are you sure you want to reactivate these Seller accounts? This will allow them to access the Platform."
          : "Are you sure you want to reactivate this Seller's account? This will allow them to access the Platform."
      }
      confirmLabel={loading ? "Reactivating..." : "Confirm Reactivate"}
      confirmButtonClassName="bg-[#16A34A] hover:bg-[#15803D]"
      confirmDisabled={loading}
      onClose={onClose}
      onConfirm={onConfirm}
    />
  );
}
