import { ReactText } from 'react'
import { toast, ToastOptions, ToastContent } from 'react-toastify'
import { TOASTS_DEFAULT_OPTIONS } from './toastsDefaultOptions'

export function ToastDefault(
  content: ToastContent,
  options?: ToastOptions
): ReactText {
  return toast(content, { ...TOASTS_DEFAULT_OPTIONS, ...(options || {}) })
}
