"use client";

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

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

  return (
    <ConfirmModal
      open={open}
      title={isBulk ? "Inactivate Products" : "Inactivate Product"}
      description={
        isBulk
          ? "Are you sure you want to inactivate these selected products? This will hide these products from the Platform. You can reactivate them anytime."
          : "Are you sure you want to inactivate this Product? This will hide product from the Platform. You can reactivate anytime."
      }
      confirmLabel="Confirm Inactivate"
      confirmButtonClassName="bg-[#DC2626] hover:bg-[#B91C1C]"
      onClose={onClose}
      onConfirm={onConfirm}
      width="440px"
    />
  );
}
