import { createContext } from '../utils'
import { SwitchContext } from './switch.types'

const [SwitchProvider, useSwitchContext] = createContext<SwitchContext>({ isOptional: true })

export { SwitchProvider, useSwitchContext }
