import { notFound } from 'next/navigation' import { getItem } from '@/lib/actions' import ItemForm from '@/components/ItemForm' import Link from 'next/link' import { ArrowLeft } from 'lucide-react' interface PageProps { params: { id: string itemId: string } } export default async function EditItemPage({ params }: PageProps) { const item = await getItem(params.itemId) if (!item || item.listId !== params.id) { notFound() } return (
{/* Header */}
Back

Edit Task

{/* Form */}
) }