/** * Trouve-KA — page de résultats de recherche (enveloppe serveur + Suspense) * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai */ import { Suspense } from "react"; import type { Metadata } from "next"; import { SearchContent } from "./search-content"; interface SearchPageProps { searchParams: Promise>; } export async function generateMetadata({ searchParams, }: SearchPageProps): Promise { const params = await searchParams; const q = typeof params.q === "string" ? params.q.trim() : ""; return { title: q ? q : "Recherche" }; } export default function SearchPage() { return (
} >
); }