import { Place } from '../types'; interface PlaceCardProps { place: Place; onClick: () => void; showDay?: boolean; compact?: boolean; } const getCategoryIcon = (category: string): string => { const icons: Record = { sight: '🏯', restaurant: '🍜', coffee: '☕', snack: '🍡', hotel: '🏨', }; return icons[category] || '📍'; }; const getCategoryLabel = (category: string): string => { const labels: Record = { sight: 'Достопримечательность', restaurant: 'Ресторан', coffee: 'Кофейня', snack: 'Перекус', hotel: 'Отель', }; return labels[category] || 'Место'; }; export function PlaceCard({ place, onClick, showDay = false, compact = false }: PlaceCardProps) { if (compact) { return ( ); } return ( ); }