wallet-core/packages/anastasis-webui/src/components/app.tsx

24 lines
683 B
TypeScript
Raw Normal View History

2021-10-11 10:58:55 +02:00
import { FunctionalComponent, h } from 'preact';
import { Route, Router } from 'preact-router';
import Home from '../routes/home';
import Profile from '../routes/profile';
import NotFoundPage from '../routes/notfound';
import Header from './header';
const App: FunctionalComponent = () => {
return (
<div id="preact_root">
<Header />
<Router>
<Route path="/" component={Home} />
<Route path="/profile/" component={Profile} user="me" />
<Route path="/profile/:user" component={Profile} />
<NotFoundPage default />
</Router>
</div>
);
};
export default App;