"use client";

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

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

  return (
    <ConfirmModal
      open={open}
      title={isBulk ? "Remove Selected Quotes?" : "Remove Quote?"}
      description={
        isBulk
          ? "Are you sure you want to remove these selected quotes? This action cannot be undone."
          : "Are you sure you want to remove this quote? This action cannot be undone."
      }
      confirmLabel={isBulk ? "Remove Quotes" : "Remove Quote"}
      confirmButtonClassName="bg-[#DC2626] hover:bg-[#B91C1C]"
      onClose={onClose}
      onConfirm={onConfirm}
      width="440px"
    />
  );
}
