---
import EventPage from "../../components/EventPage.astro";
import { getEventByParams, getEventPageEntry } from "../../data/events";

const event = getEventByParams("2026", "ncert");

if (!event) {
  return Astro.redirect("/");
}

const pageEntry = getEventPageEntry(event);
---

<EventPage event={event} pageEntry={pageEntry} />
