import { SearchPageContent } from "@/components/search/search-page-content";

type Params = { searchParams: Promise<{ q?: string; difficulty?: string; dietary?: string }> };

export default async function SearchPage({ searchParams }: Params) {
  const { q } = await searchParams;
  return <SearchPageContent initialQuery={q ?? ""} />;
}
