import { notFound } from 'next/navigation' import { getItem } from '@/lib/actions' import ItemDetail from '@/components/ItemDetail' import Link from 'next/link' import { ArrowLeft, Edit, Trash2 } from 'lucide-react' import DeleteItemButton from '@/components/DeleteItemButton' import ToggleItemButton from '@/components/ToggleItemButton' interface PageProps { params: { id: string itemId: string } } export default async function ItemDetailPage({ params }: PageProps) { const item = await getItem(params.itemId) if (!item || item.listId !== params.id) { notFound() } return (
{/* Header Actions */}
Back to List
Edit
{/* Item Detail */}
) }