import type { Metadata } from "next"; import { getTranslations } from "next-intl/server"; import { Container } from "@/components/atoms/Container"; import { Section } from "@/components/atoms/Section"; import { EventCard } from "@/components/molecules/Cards"; import { PageHero } from "@/components/molecules/PageHero"; import { getEvents } from "@/lib/data/events"; import { pageMetadata } from "@/lib/seo/metadata"; export async function generateMetadata(): Promise { const t = await getTranslations("pages"); return pageMetadata({ title: t("eventsTitle"), description: t("eventsIntro"), path: "/events", }); } export default async function EventsPage() { const t = await getTranslations("pages"); const events = await getEvents(); return (
{events.map((event) => ( ))}
); }