import { getAllAnnonces } from "@/lib/services/annonceService"; import { CardAnnonce } from "@/lib/components/annonceComponent"; import Link from 'next/link'; import { getServerSession } from 'next-auth/next'; import { authOptions } from '@/app/api/auth/[...nextauth]/route'; export default async function Home() { const session = await getServerSession(authOptions); const annonces = await getAllAnnonces(); return (
{/* Header et Navigation */}
ImmoNext
{/* Titre */}

La propriété de vos rêves

Parcourez nos annonces exclusives et trouvez le bien qui vous attend.

{/* Annonces */}
{annonces.map((annonce) => ( ))}
); }