import { Modal, Button } from 'react-bootstrap' import { MapContainer, Marker, Popup, TileLayer } from 'react-leaflet' import LineDot from './LineDot' import { categoryNames } from '../assets/category' import { useBook } from '../hooks/api' function AnnouncementDetails({ close, announcement: { id, name, category, bestBy, description, lat, lng, address, metro } }) { const { handleBook, status: bookStatus } = useBook(id) return (
Подробнее

{name}

{categoryNames.get(category)} {/* dot */} Годен до {new Date(bestBy).toLocaleString('ru-RU')}

{description}

{address}
{metro}
) } export default AnnouncementDetails