import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only';
// import '@/utils/headers-polyfill.js'
import { PropsWithChildren } from 'react'
import { QueryClientProvider } from '@tanstack/react-query'
import { AuthProvider, queryClient } from '@d8d/mini-enterprise-auth-ui/hooks'

import './app.css'

function App({ children }: PropsWithChildren<any>) {

  // children 是将要会渲染的页面
  return (
    <QueryClientProvider client={queryClient}>
      <AuthProvider>{children}</AuthProvider>
    </QueryClientProvider>
  )
}

export default App
