import { redirect } from 'next/navigation'; interface Props { params: Promise<{ id: string }>; } export default async function EditRecipeRedirect({ params }: Props) { const { id } = await params; redirect(`/recipes/${id}`); }