import { useState, useEffect } from 'react'; import ScanBlock from './ScanBlock'; import Table from './Table'; import { fetchAPI, getLocation, getMap } from './mainOld'; const LocationBlock = () => { const [data, setData] = useState([]); const [display, setDisplay] = useState(''); useEffect(() => { fetchAPI(setData, setDisplay); }, []); return (

Location

{display === 1 && ( <> Map of current location )} {display === 0 && (
Unable to fetch info. Adblock or content filter may have prevented data from loading.
)}

Explanation: Your IP address can be used to determine your location. Using a VPN or Tor will hide your true location.

); }; export default LocationBlock;