import { useMemo } from 'react';
import { clear, show, success, info, loading, fail, hide } from "./methods";
import "./index.less";
var Toast = {
  show: show,
  clear: clear,
  success: success,
  info: info,
  loading: loading,
  fail: fail,
  error: fail,
  hide: hide
};
export var useToast = function useToast() {
  return useMemo(function () {
    return {
      show: show,
      clear: clear,
      success: success,
      info: info,
      loading: loading,
      fail: fail,
      error: fail,
      hide: hide
    };
  }, []);
};
export default Toast;