import Link from 'next/link' import { Avatar } from '@/components/ui/avatar' import { PriorityTag, StatusTag } from '@/components/ui/status-tag' import { STATUS_ORDER, type CapaRow } from '@/lib/capa/list' export function CapaBoardView({ capas }: { capas: CapaRow[] }) { return (
{STATUS_ORDER.map(status => { const items = capas.filter(c => c.status === status) return (
{items.length}
{items.map(c => (

{c.description}

{c.incident_ref ?? '—'}

{c.owner_name && } {c.owner_name ?? '—'}

Due {c.due_date}

))} {items.length === 0 &&

Empty

}
) })}
) }