import { AppLayout } from "@/components/layout/layout";
import { Switch, Route } from "wouter";
import DashboardPage from "@/pages/dashboard";
import ProjectsPage from "@/pages/projects";
import TimesheetsPage from "@/pages/timesheets";
import TimesheetDetailPage from "@/pages/timesheet-detail";
import NotFound from "@/pages/not-found";

export default function App() {
  return (
    <AppLayout>
      <Switch>
        <Route path="/" component={DashboardPage} />
        <Route path="/projects" component={ProjectsPage} />
        <Route path="/timesheets" component={TimesheetsPage} />
        <Route path="/timesheets/:id" component={TimesheetDetailPage} />
        <Route component={NotFound} />
      </Switch>
    </AppLayout>
  );
}
