import Footer from "@/components/footer"; import Header from "@/components/header"; import { Badge } from "@/components/ui/badge" import { getPages } from "@/lib/pages/repository"; import { PageMeta } from "@/lib/pages/types"; import { ArrowRight, Calendar, Globe2 } from "lucide-react"; 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) => (

{n.title}

{(n.publishedAt)?.toString()}

{(n.meta as PageMeta)?.location}

{((n.meta as PageMeta)?.tags)?.map((i, tag) => ( {tag} ))}
), (

See all news

)) :

There are no news yet...

}