11 lines
234 B
TypeScript
11 lines
234 B
TypeScript
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}`);
|
|
}
|