import React from 'react' import { Check, MapPin } from 'lucide-react' import type { CollectionPlace, CollectionStatus } from '@trek/shared' import type { TranslationFn } from '../../types' import PlaceAvatar from '../shared/PlaceAvatar' import StatusBadge from './StatusBadge' interface CollectionListProps { places: CollectionPlace[] selectedPlaceId: number | null selectMode: boolean selectedIds: number[] onOpenPlace: (id: number) => void onStatusChange: (placeId: number, status: CollectionStatus) => void onToggleSelect: (id: number) => void t: TranslationFn } /** * List view — one glass row per saved place with a photo avatar, name + * category/address, and a one-tap status cycle on the badge. Click the row to * open the place (or toggle it in select mode). */ export default function CollectionList({ places, selectedPlaceId, selectMode, selectedIds, onOpenPlace, onStatusChange, onToggleSelect, t, }: CollectionListProps): React.ReactElement { return (