'use client' import { ChevronRight } from 'lucide-react' import type { BacklogItem, BacklogCategory } from '../types' import { statusLabels, priorityLabels } from '../data' interface BacklogItemCardProps { item: BacklogItem category: BacklogCategory | undefined isExpanded: boolean onToggleExpand: (id: string) => void onUpdateStatus: (id: string, status: BacklogItem['status']) => void onToggleSubtask: (itemId: string, subtaskId: string) => void } export function BacklogItemCard({ item, category, isExpanded, onToggleExpand, onUpdateStatus, onToggleSubtask, }: BacklogItemCardProps) { const completedSubtasks = item.subtasks?.filter((st) => st.completed).length || 0 const totalSubtasks = item.subtasks?.length || 0 return (
{item.description}
{item.notes && ({item.notes}
)}