e179692adf
Postgres full-text search with dietary/difficulty/time filters. Search page with real-time results. Explore page with trending and recent recipes.
9 lines
337 B
TypeScript
9 lines
337 B
TypeScript
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 ?? ""} />;
|
|
}
|