import {
SuperinterfaceProvider,
ThreadDialog,
} from '@superinterface/react'
import { Theme } from '@radix-ui/themes'
import {
QueryClient,
QueryClientProvider,
} from '@tanstack/react-query'
import '@radix-ui/themes/styles.css'
const queryClient = new QueryClient({
defaultOptions: {
queries: {
staleTime: 10000,
},
},
})
export default function App() {
return (
<QueryClientProvider client={queryClient}>
<Theme>
<SuperinterfaceProvider
variables={{
publicApiKey: '37245be8-902a-440e-aaae-c56151fe8acc',
assistantId: 'b43c4197-d34a-4843-aad6-65088f3065e7',
}}
>
<ThreadDialog />
</SuperinterfaceProvider>
</Theme>
</QueryClientProvider>
)
}