import Footer from "@/components/footer"; import Header from "@/components/header"; import { NewsCard } from "@/components/newsCard"; import { Badge } from "@/components/ui/badge" import { getPages } from "@/lib/pages/repository"; import { PageMeta } from "@/lib/pages/types"; import { formatDate } from "@/lib/utils"; import { ArrowRightIcon, CalendarIcon, Globe2Icon } from "lucide-react"; import Link from "next/link"; export default async function Home() { const news = await getPages("NEWS", "PUBLISHED", 5); return ( <>

Welcome to the European Federation!

Become a citizen

Learn more about the President

Acknowledge with the Federal Government

Regions of the Federation

Receive consular services abroad

Recent news

{ news.length > 0 ? news.map((n) => ( )) :

There are no news yet...

}

See all news