import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './styles/globals.css'

(() => {
  const html = document.documentElement
  try {
    if (html.classList.contains('dark')) {
      html.classList.remove('dark')
    }
    document.body.classList.remove('dark')
    html.style.colorScheme = 'light'
    html.setAttribute('data-theme', 'light')
  } catch {
  }
})()
import { AppRouter } from './app/router'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'

const queryClient = new QueryClient({
  defaultOptions: { queries: { refetchOnWindowFocus: false, retry: 2 } },
})

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <QueryClientProvider client={queryClient}>
      <AppRouter />
    </QueryClientProvider>
  </StrictMode>,
)
