sonda/web/src/App.tsx
tgiachi 3ffd07c546 feat(web): app shell, sidebar and routes
- sidebar with the current page marked, privacy note, and a main area that wraps on narrow screens
- routes for home, search, artists, albums, songs and settings, and a not-found page
2026-11-12 11:23:24 +01:00

17 lines
565 B
TypeScript

import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { createBrowserRouter, RouterProvider } from 'react-router-dom'
import AuthGate from './auth/AuthGate'
import { routes } from './router'
const queryClient = new QueryClient({ defaultOptions: { queries: { staleTime: 30_000, retry: 1 } } })
const router = createBrowserRouter(routes)
export default function App() {
return (
<QueryClientProvider client={queryClient}>
<AuthGate>
<RouterProvider router={router} />
</AuthGate>
</QueryClientProvider>
)
}