Monorepo for Wisp.place. A static site hosting service built on top of the AT Protocol.
at v1.0.0 576 B view raw
1import type { PropsWithChildren } from 'react' 2 3import { QueryClientProvider, QueryClient } from '@tanstack/react-query' 4import clsx from 'clsx' 5 6import '@public/styles/global.css' 7 8const client = new QueryClient() 9 10interface LayoutProps extends PropsWithChildren { 11 className?: string 12} 13 14export default function Layout({ children, className }: LayoutProps) { 15 return ( 16 <QueryClientProvider client={client}> 17 <div 18 className={clsx( 19 'flex flex-col items-center w-full min-h-screen', 20 className 21 )} 22 > 23 {children} 24 </div> 25 </QueryClientProvider> 26 ) 27}