import toastr from "toastr";
import { Option } from "funfix";

const toastrMsg = (string: string): void => {
  toastr.info(Option.of(string).getOrElse("操作成功"));
};

const toastrError = (string?: string): void => {
  toastr.error(Option.of(string).getOrElse("请稍后再使用"));
};

export { toastrMsg, toastrError };
