import { TamaguiProvider, Theme } from 'tamagui' import { createBrowserRouter, RouterProvider } from 'react-router-dom' import { Provider as StatusProvider } from '@status-im/components' import { Web3OnboardProvider, init } from '@web3-onboard/react' import injectedModule from '@web3-onboard/injected-wallets' import walletConnectModule from '@web3-onboard/walletconnect' import { useSelector } from 'react-redux' import config from '../tamagui.config' import LandingPage from './pages/LandingPage/LandingPage' import DeviceHealthCheck from './pages/DeviceHealthCheck/DeviceHealthCheck' import ConnectDevicePage from './pages/ConnectDevicePage/ConnectDevicePage' import { RootState } from './redux/store' import DeviceSyncStatus from './pages/DeviceSyncStatus/DeviceSyncStatus' import PairDevice from './pages/PairDevice/PairDevice' import PinnedNotification from './components/General/PinnedNottification' import CreateLocalNodePage from './pages/CreateLocalNodePage/CreateLocalNodePage' import ValidatorOnboarding from './pages/ValidatorOnboarding/ValidatorOnboarding' import { ethereumRopsten, wcV2InitOptions, apiKey } from './constants' import Dashboard from './pages/Dashboard/Dashboard' import ConnectExistingInstance from './pages/ConnectExistingInstance/ConnectExistingInstance' import './App.css' const injected = injectedModule() const walletConnect = walletConnectModule(wcV2InitOptions) const chains = [ethereumRopsten] const wallets = [injected, walletConnect] const web3Onboard = init({ apiKey, wallets, chains, appMetadata: { name: 'Web3-Onboard Demo', icon: 'App Icon', description: 'A demo of Web3-Onboard.', }, }) const router = createBrowserRouter([ { path: '/', element: , }, { path: '/device-health-check', element: , }, { path: '/connect-device', element: , }, { path: '/device-sync-status', element: , }, { path: '/pair-device', element: , }, { path: '/pair-existing-instance', element: , }, { path: '/create-local-node', element: }, { path: '/validator-onboarding', element: }, { path: '/dashboard', element: }, ]) function App() { const theme = useSelector((state: RootState) => state.theme) return ( ) } export default App