import React from 'react'; import Chart from 'react-google-charts'; import { useSelector } from 'react-redux'; import { RootState } from '../../../redux/reducers'; /* Country geo Map is used for location of users with Country and respective count of users wise to present it on map */ const CountryMap = () => { const data: string[][] = useSelector( (state: RootState) => state.communityData.google.geoCountry ); const parsedData = data.map((item) => [item[0], parseInt(item[1], 10)]); parsedData.unshift(['Country', 'Count']); return (
); }; export default CountryMap;