nimbus-gui/src/App.tsx
2023-08-16 14:32:53 +03:00

46 lines
1.2 KiB
TypeScript

import { TamaguiProvider } from 'tamagui'
import { createBrowserRouter, RouterProvider } from 'react-router-dom'
import { Provider as StatusProvider } from '@status-im/components'
import './App.css'
import config from '../tamagui.config'
import LandingPage from './pages/LandingPage/LandingPage'
import DeviceHealthCheck from './pages/DeviceHealthCheck/DeviceHealthCheck'
import ConnectDevicePage from './pages/ConnectDevicePage/ConnectDevicePage'
import DeviceSyncStatus from './pages/DeviceSyncStatus/DeviceSyncStatus'
import CreateLocalNodePage from './pages/CreateLocalNodePage/CreateLocalNodePage'
const router = createBrowserRouter([
{
path: '/',
element: <LandingPage />,
},
{
path: '/device-health-check',
element: <DeviceHealthCheck />,
},
{
path: '/connect-device',
element: <ConnectDevicePage />,
},
{
path: '/device-sync-status',
element: <DeviceSyncStatus />,
},
{
path: '/create-local-node',
element: <CreateLocalNodePage />,
},
])
function App() {
return (
<TamaguiProvider config={config}>
<StatusProvider>
<RouterProvider router={router} />
</StatusProvider>
</TamaguiProvider>
)
}
export default App