import React from "react";
import { useInsuranceRequirementManager } from "../../../../../services/Services";
import { SettingsDeleteView } from "../../../../../components/business/views";
import { ShieldCheckIcon, BuildingOfficeIcon, DocumentTextIcon, UserGroupIcon } from "@heroicons/react/24/outline";

function SettingInsuranceRequirementDeletePage() {
  const insuranceRequirementManager = useInsuranceRequirementManager();

  // Define impact warnings
  const impactWarnings = [
    {
      icon: UserGroupIcon,
      text: "Facilitators and jobs that reference this insurance requirement"
    },
    {
      icon: DocumentTextIcon,
      text: "Historical compliance records and reports"
    },
    {
      icon: BuildingOfficeIcon,
      text: "Future insurance verifications will not have access to this requirement"
    }
  ];

  // Define alternative text
  const alternativeText = "Consider marking the insurance requirement as inactive instead of deleting it to preserve compliance history and allow for potential reactivation in the future.";

  return (
    <SettingsDeleteView
      entityType="insuranceRequirement"
      entityTypePlural="Insurance Requirements"
      entityIcon={ShieldCheckIcon}
      entityManager={insuranceRequirementManager}
      basePath="/admin/settings/insurance-requirement"
      listPath="/admin/settings/insurance-requirements"
      title="Delete Insurance Requirement"
      subtitle="Permanent deletion confirmation"
      impactWarnings={impactWarnings}
      alternativeText={alternativeText}
      requiresConfirmation={true}
    />
  );
}

export default SettingInsuranceRequirementDeletePage;