import { createContext } from '../utils'
import type { ModalContext } from './modal.types'

const [ModalProvider, useModalContext] = createContext<ModalContext>({ isOptional: true })

export { ModalProvider, useModalContext }
