feat(ui): build responsive cookbook, editor and persistent cooking assistant

This commit is contained in:
OpenCode committed 2026-10-24 15:40:57 +02:00
1 parent 5d71d32e20
commit a58516e424
29 files changed
+6430

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import { notFound } from 'next/navigation';
import { getRecipe } from '@/lib/repository';
import { admin } from '@/lib/server';
import { Cooking } from '@/components/cooking';
export const dynamic = 'force-dynamic';
export const metadata = { title: 'Jetzt kochen' };
export default async function Cook({
params,
searchParams,
}: {
params: Promise<{ id: string }>;
searchParams: Promise<{ faktor?: string }>;
}) {
const r = await getRecipe((await params).id, !!(await admin()));
if (!r) notFound();
return <Cooking recipe={r} initialFactor={(await searchParams).faktor ?? '1'} />;
}