import { SiZenn } from "react-icons/si"; import { FaDirections } from "react-icons/fa"; import { BsSpeedometer2, BsSpeedometer, BsPinMapFill } from "react-icons/bs"; import { BiSolidCity, BiSolidRename } from "react-icons/bi"; import { FaMapLocationDot } from "react-icons/fa6"; import { Poi } from "../../redux/types/Poi"; import ParentSize from "@visx/responsive/lib/components/ParentSize"; import SimpleChart from "../../components/charts/singleChart/SimpleChart"; type InformationSectionProps = { selectedPoi: Poi; }; const InformationSection: React.FC = ({ selectedPoi, }) => { const streetSpecs = [ { label: "Average speed", icon: , value: selectedPoi ? selectedPoi?.data.section?.avg_speed.toString().slice(0, 4) : "n/a" + "km/h", }, { label: "Commune", icon: , value: selectedPoi ? selectedPoi?.data.section?.commune : "n/a", }, { label: "Department", icon: , value: selectedPoi ? selectedPoi?.data.section?.department : "n/a", }, { label: "Length", icon: , value: selectedPoi ? selectedPoi?.data.section?.length : "n/a" + "m", }, { label: "Max speed", icon: , value: selectedPoi ? selectedPoi?.data.section?.max_speed : "n/a" + "km/h", }, { label: "Name", icon: , value: (

{selectedPoi ? selectedPoi?.data.section?.name : "n/a"}

), }, { label: "Directions", icon: , value: selectedPoi ? selectedPoi?.data.section?.nbr_direction : "n/a", }, { label: "Region", icon: , value: selectedPoi ? selectedPoi?.data.section?.region : "n/a", }, ]; return (
Section Information
{streetSpecs.map((object, index) => (

{object.label} {object.icon}

{object.value}

))}
Top 10 Trafic Origin
{({ width, height }) => ( )}
); }; export default InformationSection;