import { Route, Router } from "@solidjs/router";
import type { Component } from "solid-js";
import { StartView } from "./views/StartView";
import { AppView } from "./views/AppView";
import { LoginView } from "./views/LoginView";
import { RegisterView } from "./views/RegisterView";

const App: Component = () => {
    return (
        <Router>
            <Route path="/" component={StartView} />
            <Route path="/app" component={AppView} />
            <Route path="/login" component={LoginView} />
            <Route path="/register" component={RegisterView} />
        </Router>
    );
};

export default App;
