import type { ListItem } from '@superlist/shared' import { ChevronDownIcon } from 'lucide-react' import { Card } from '@/components/ui/card' import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/ui/collapsible' import type { useUpdateItem } from '@/hooks/use-items' import { ItemRow } from './item-row' type BoughtItemListProps = { items: ListItem[] updateItem: ReturnType savingIds: string[] } /** * Collapsible "Comprados" card below the pending items. Expanded by default so * marking an item visibly moves it down; the user can fold it. Tapping an item * here un-buys it and it returns to the pending list. */ export function BoughtItemList({ items, updateItem, savingIds }: BoughtItemListProps) { return ( Comprados ยท {items.length}
    {items.map((item) => ( ))}
) }