39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import { Toaster } from "@/components/ui/sonner";
|
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
|
import CookiePolicyPage from "@/pages/CookiePolicyPage";
|
|
import LegalNotesPage from "@/pages/LegalNotesPage";
|
|
import NotFound from "@/pages/NotFound";
|
|
import PrivacyPolicyPage from "@/pages/PrivacyPolicyPage";
|
|
import { Route, Switch } from "wouter";
|
|
import ErrorBoundary from "./components/ErrorBoundary";
|
|
import { ThemeProvider } from "./contexts/ThemeContext";
|
|
import Home from "./pages/Home";
|
|
|
|
function Router() {
|
|
return (
|
|
<Switch>
|
|
<Route path={"/"} component={Home} />
|
|
<Route path={"/privacy-policy"} component={PrivacyPolicyPage} />
|
|
<Route path={"/cookie-policy"} component={CookiePolicyPage} />
|
|
<Route path={"/note-legali"} component={LegalNotesPage} />
|
|
<Route path={"/404"} component={NotFound} />
|
|
<Route component={NotFound} />
|
|
</Switch>
|
|
);
|
|
}
|
|
|
|
function App() {
|
|
return (
|
|
<ErrorBoundary>
|
|
<ThemeProvider defaultTheme="light">
|
|
<TooltipProvider>
|
|
<Toaster position="top-right" richColors />
|
|
<Router />
|
|
</TooltipProvider>
|
|
</ThemeProvider>
|
|
</ErrorBoundary>
|
|
);
|
|
}
|
|
|
|
export default App;
|