"use client";

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

export default function RemoveCategoryModal({
  open,
  loading = false,
  onClose,
  onConfirm,
}: {
  open: boolean;
  loading?: boolean;
  onClose: () => void;
  onConfirm: () => void;
}) {
  return (
    <ConfirmModal
      open={open}
      title="Remove Category?"
      description="Are you sure you want to remove this category? All products associated with this category will be marked as uncategorized. This action cannot be undone."
      confirmLabel={loading ? "Removing..." : "Confirm Remove"}
      confirmDisabled={loading}
      confirmButtonClassName="bg-[#DC2626] hover:bg-[#B91C1C]"
      onClose={onClose}
      onConfirm={onConfirm}
      width="440px"
    />
  );
}
