feat: route structure, providers, layouts, and placeholder pages

This commit is contained in:
zetaloop
2026-02-20 12:43:34 +08:00
parent 1f87f4676e
commit 3093da1665
35 changed files with 324 additions and 70 deletions
+20
View File
@@ -0,0 +1,20 @@
"use client"
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
import { useState } from "react"
export function Providers({ children }: { children: React.ReactNode }) {
const [queryClient] = useState(
() =>
new QueryClient({
defaultOptions: {
queries: {
staleTime: 60 * 1000,
refetchOnWindowFocus: false,
},
},
}),
)
return <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
}