Update features and dependencies

This commit is contained in:
Arnaud
2026-07-01 11:10:37 +02:00
parent 9d9dfb46c6
commit 8b57a3fd87
107 changed files with 14654 additions and 458 deletions
+7 -2
View File
@@ -24,7 +24,12 @@ export type RecipeResult = {
cookMins: number | null;
};
export default async function ExplorePage() {
export default async function ExplorePage({
searchParams,
}: {
searchParams: Promise<{ q?: string }>;
}) {
const { q } = await searchParams;
const sevenDaysAgo = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000);
// Trending: public recipes ordered by favorite count in last 7 days
@@ -71,5 +76,5 @@ export default async function ExplorePage() {
const trending: RecipeResult[] = trendingRows.map(({ favoriteCount: _fc, ...r }) => r);
const recent: RecipeResult[] = recentRows;
return <ExplorePageContent trending={trending} recent={recent} />;
return <ExplorePageContent trending={trending} recent={recent} initialQuery={q ?? ""} />;
}