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

import React from "react";
import { HomeIcon } from "@heroicons/react/24/outline";
import { EVENT_TYPE_ONSITE } from "../../../../../constants/Event";
import EventListPage from "../../../../../components/business/events/EventListPage";

// Onsite event type configuration
const onsiteConfig = {
  eventType: EVENT_TYPE_ONSITE,
  routePrefix: "in-school",
  labels: {
    eventTypeName: "Onsite",
    pluralName: "In-School Events",
    title: "In-School Events Management",
    subtitle:
      "Manage onsite events, in-school attendees, and physical schedules",
  },
  icons: {
    wizard: HomeIcon,
  },
  routes: {
    list: "/admin/events/in-schools",
    add: "/admin/events/in-schools/add",
    detail: "/admin/events/in-school/:eventId",
    delete: "/admin/events/in-school/:eventId/delete",
    search: "/admin/events/in-schools/search",
  },
};

function AdminEventInSchoolListPage() {
  return (
    <EventListPage
      eventType={EVENT_TYPE_ONSITE}
      eventTypeConfig={onsiteConfig}
      showCloneInGrid={false}
      showDeleteInGrid={false}
    />
  );
}

export default AdminEventInSchoolListPage;
