// File Path: monorepo/web/frontend/src/pages/Admin/Division/Detail/Event/List/Page.jsx

import React from "react";
import { BuildingOffice2Icon } from "@heroicons/react/24/outline";
import {
  useDivisionManager,
} from "../../../../../../services/Services";
import { EntityEventListView } from "../../../../../../components/business/views";
import {
  DIVISION_STATUS_ACTIVE,
  DIVISION_STATUS_INACTIVE,
  DIVISION_STATUS_ARCHIVED,
  DIVISION_TYPE_LABELS,
} from "../../../../../../constants/Division";

function AdminDivisionDetailEventListPage() {
  const divisionManager = useDivisionManager();

  return (
    <EntityEventListView
      entityType="division"
      entityTypePlural="Divisions"
      entityIcon={BuildingOffice2Icon}
      entityManager={divisionManager}
      entityTypeMap={DIVISION_TYPE_LABELS}
      entityStatusActive={DIVISION_STATUS_ACTIVE}
      entityStatusInactive={DIVISION_STATUS_INACTIVE}
      entityStatusArchived={DIVISION_STATUS_ARCHIVED}
      basePath="/admin/divisions"
    />
  );
}

export default AdminDivisionDetailEventListPage;