'use client'

import { SessionProvider } from 'next-auth/react'
import { AuthProvider } from './AuthProvider'

export function Providers({ children }: { children: React.ReactNode }) {
  return (
    <SessionProvider
      refetchInterval={0}
      refetchOnWindowFocus={false}
      refetchWhenOffline={false}
      basePath="/api/auth"
    >
      <AuthProvider>{children}</AuthProvider>
    </SessionProvider>
  )
}
