check this out next docs
in your Home, try:
type SearchParams = { [key: string]: string | string[] | undefined } export default async function Home({ searchParams, }: { searchParams: SearchParams }) { // ... }