import Link from 'next/link'; import type { Recipe } from '@/lib/recipes'; interface RecipePageLayoutProps { recipe: Recipe; children: React.ReactNode; } export default function RecipePageLayout({ recipe, children }: RecipePageLayoutProps) { return (
{/* Back navigation */}
{recipe.category} {recipe.lastUpdated !== recipe.date && ( <> )}

{recipe.title}

{recipe.description}

Prep: {recipe.prepTime} min
Cook: {recipe.cookTime} min
Servings: {recipe.servings}
{recipe.tags.map((tag) => ( {tag} ))}
{/* MDX content: intro prose + RecipeCard + outro prose */}
{children}
); }