import { Route, Switch } from "wouter";
import { Toaster } from "sonner";
import Analyzer from "./pages/Analyzer";
import SwaggerPage from "./pages/SwaggerPage";
import NotFound from "./pages/NotFound";

export default function App() {
  return (
    <>
      <Toaster
        theme="dark"
        position="bottom-right"
        toastOptions={{
          style: {
            background: "var(--bg-elevated)",
            border: "1px solid var(--border)",
            color: "var(--text-primary)",
            fontFamily: "var(--font-sans)",
          },
        }}
      />
      <Switch>
        <Route path="/" component={Analyzer} />
        <Route path="/swagger" component={SwaggerPage} />
        <Route component={NotFound} />
      </Switch>
    </>
  );
}
