import { useState, useEffect } from "react"; import { Poi } from "../../redux/types/Poi"; import { convertModeObjectToArray } from "../../utils/convertModeObjectToArray"; import { FaWalking } from "react-icons/fa"; import { AiFillCar } from "react-icons/ai"; import { formatDate } from "../../utils/formatDate"; import { FaLocationDot } from "react-icons/fa6"; import { TbWorldLatitude, TbWorldLongitude } from "react-icons/tb"; import { BiTimeFive } from "react-icons/bi"; type DemographicsSectionProps = { selectedPoi: Poi; }; const DescriptionSection: React.FC = ({ selectedPoi, }) => { return (
{selectedPoi ? selectedPoi?.address : "unknown"}
{selectedPoi ? selectedPoi?.lat : "unknown"}
{selectedPoi ? selectedPoi?.lng : "unknown"}
{selectedPoi ? formatDate(selectedPoi?.ts_updated) : "unknown"}
); }; export default DescriptionSection;