2024-04-03 14:23:28 +00:00
|
|
|
import { useQuery, useMutation, useQueryClient, queryOptions, QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
|
|
import type { ReactNode } from "react";
|
|
|
|
import { KiosMap } from "@/components/KiosMap"
|
|
|
|
|
|
|
|
export const queryClient = new QueryClient({
|
|
|
|
defaultOptions: {
|
|
|
|
queries: {
|
|
|
|
staleTime: 30000,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
interface AppProps {
|
|
|
|
children?: ReactNode;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const App: React.FC<AppProps> = (props) => {
|
|
|
|
return (
|
|
|
|
<div className="app">
|
2024-04-03 17:11:33 +00:00
|
|
|
<QueryClientProvider client={queryClient}>
|
|
|
|
{props.children}
|
|
|
|
<KiosMap/>
|
|
|
|
</QueryClientProvider>
|
2024-04-03 14:23:28 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|