'use client'

import type { PropTypes } from '@zag-js/react'
import type * as toast from '@zag-js/toast'
import type { ReactNode } from 'react'
import { createContext } from '../../utils/create-context.ts'

export interface UseToastContext extends toast.Api<PropTypes, ReactNode> {}

export const [ToastProvider, useToastContext] = createContext<UseToastContext>({
  name: 'ToastContext',
  hookName: 'useToastContext',
  providerName: '<ToastProvider />',
})
