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

import React from "react";
import { BuildingOffice2Icon } from "@heroicons/react/24/outline";
import { useOrganizationManager } from "../../../../../../services/Services";
import { EntityEventListView } from "../../../../../../components/business/views";
import {
  ORGANIZATION_STATUS_ACTIVE,
  ORGANIZATION_STATUS_ARCHIVED,
  ORGANIZATION_TYPE_MAP,
} from "../../../../../../constants/Organization";

function AdminOrganizationDetailEventListPage() {
  const organizationManager = useOrganizationManager();

  return (
    <EntityEventListView
      entityType="organization"
      entityTypePlural="Organizations"
      entityIcon={BuildingOffice2Icon}
      entityManager={organizationManager}
      entityTypeMap={ORGANIZATION_TYPE_MAP}
      entityStatusActive={ORGANIZATION_STATUS_ACTIVE}
      entityStatusInactive={null} // Organizations don't have inactive status
      entityStatusArchived={ORGANIZATION_STATUS_ARCHIVED}
      basePath="/admin/organizations"
    />
  );
}

export default AdminOrganizationDetailEventListPage;
