import React, { useState } from 'react' import { ThemeProvider, Flex, Box, Text } from 'theme-ui' import { theme } from '../theme' import { MapPin, Home, MessageSquare, Globe, Sliders, Settings, ExternalLink, } from 'react-feather' import TabItem from './TabItem' import LocationPage from './Pages/LocationPage' import UserAgentPage from './Pages/UserAgentPage' import SettingsPage from './Pages/SettingsPage' import AddressAutofillPage from './Pages/AddressAutofillPage' import WebRtcPage from './Pages/WebRtcPage' const Popup = () => { const [tab, setTab] = useState('webRtc') return ( setTab('location')} /> setTab('addressAutofill')} /> setTab('webRtc')} /> setTab('useragent')} /> setTab('settings')} /> window.open('https://vytal.io')} /> {/* Current tab won't be fully spoofed until after 1st or 2nd reload. */} ) } export default Popup