// File Path: monorepo/web/frontend/src/pages/Admin/Event/InSchool/Search/ResultPage.jsx

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

// InSchool (Onsite) event type configuration
const inSchoolConfig = {
  eventTypeName: "In-School Event",
  pluralName: "In-School Events",
  listRoute: "/admin/events/in-schools",
  searchRoute: "/admin/events/in-schools/search",
  addRoute: "/admin/events/in-schools/add/step-1",
  detailRoute: "/admin/events/in-school",
  icon: HomeIcon,
  eventTypeId: EVENT_TYPE_OF_ID_IN_SCHOOL,
};

function AdminEventInSchoolSearchResultPage() {
  return <EventSearchResultsComponent eventTypeConfig={inSchoolConfig} />;
}

export default AdminEventInSchoolSearchResultPage;
