All files / Bandstand/src/components Providers.tsx

100% Statements 15/15
100% Branches 1/1
100% Functions 1/1
100% Lines 15/15

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24      1x   1x 1x   4x 4x 4x 4x     4x 4x 4x 4x 4x 4x 4x   4x  
'use client'
 
import {ReactNode} from 'react'
import {SessionProvider} from 'next-auth/react'
import type {Session} from 'next-auth'
import ThemeWatcher from '@/components/ThemeWatcher'
import PwaSetup from '@/components/pwa/PwaSetup'
 
export default function Providers({
  children,
  session,
}: {
  children: ReactNode
  session: Session | null
}) {
  return (
    <SessionProvider session={session}>
      <ThemeWatcher />
      <PwaSetup />
      {children}
    </SessionProvider>
  )
}