diff --git a/src/App.tsx b/src/App.tsx index 1e542bc..e67362a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,206 +1,35 @@ -import Tooltip from 'rc-tooltip'; import React from 'react'; -import { Helmet } from 'react-helmet'; -import { useTranslation } from 'react-i18next'; -import { IoIosFlash, IoIosRocket } from 'react-icons/io'; -import { Redirect, Route, Switch, useParams } from 'react-router-dom'; -import styled, { createGlobalStyle } from 'styled-components'; -import Cards from './components/cards'; -import { - AvailableIcon, - COLORS as ResultColor, - ResultIcon, - ResultItem, - ResultName, -} from './components/cards/core'; +import { Redirect, Route, Switch } from 'react-router-dom'; import Footer from './components/Footer'; -import Form from './components/Form'; -import Welcome from './components/Welcome'; -import { useStoreState } from './store'; -import { mobile } from './util/css'; +import Home from './pages/Home'; +import Search from './pages/Search'; +import { GlobalStyle } from './theme'; +import { useOpenSearch } from './util/hooks'; import { isStandalone } from './util/pwa'; -import { sanitize } from './util/text'; export default function App() { + const OpenSearch = useOpenSearch('/opensearch.xml'); + return ( <> - - - + + + + + {!isStandalone() &&