Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

341 B
Raw Blame
const toastify = () => import(/* webpackChunkName: "toastify" */ "./toastify")

export const success = (content: string | JSX.Element) => {
  return toastify().then((toast) => {
    toast.success(content)
  })
}

export const error = (content: string | JSX.Element) => {
  return toastify().then((toast) => {
    toast.error(content)
  })
}