2023-08-01 09:59:08 +05:30
|
|
|
import React, { useState } from 'react';
|
|
|
|
|
import { FaInfoCircle } from "react-icons/fa";
|
2023-07-31 18:04:44 +05:30
|
|
|
|
|
|
|
|
import WorldMap from './WorldMap';
|
|
|
|
|
import './Locations.css';
|
|
|
|
|
|
|
|
|
|
function Locations({ show }) {
|
2023-08-01 09:59:08 +05:30
|
|
|
const [showCardInfo, setShowCardInfo] = useState(false);
|
2023-07-31 18:04:44 +05:30
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className='locations-card'>
|
2023-08-01 09:59:08 +05:30
|
|
|
<div className='locations-card-title'>Locations<span className='locations-info-icon' onClick={() => { setShowCardInfo(!showCardInfo) }}><FaInfoCircle /></span>
|
2023-08-01 11:54:48 +05:30
|
|
|
{showCardInfo && <div className='locations-info-card'>Test locations are shown in map. For example, Nagpur has conducted tests</div>}
|
2023-08-01 09:59:08 +05:30
|
|
|
</div>
|
2023-07-31 18:04:44 +05:30
|
|
|
<WorldMap show={show} />
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
export default Locations;
|