import { getListWithItems } from '@/lib/actions' import { notFound } from 'next/navigation' import Link from 'next/link' import { ArrowLeft } from 'lucide-react' import InlineItemCreate from '@/components/InlineItemCreate' import ListDetailView from '@/components/ListDetailView' export default async function ListDetailPage({ params }: { params: { id: string } }) { const list = await getListWithItems(params.id) if (!list) { notFound() } const completedItems = list.items.filter(item => item.completed) return (
{/* Header */}
Back to Lists

{list.title}

{completedItems.length} of {list.items.length} tasks completed

{/* Inline Item Creation */}
{/* Search, Filter, and Items List */}
) }