"use strict";const e=require("../../../../common/vendor.js"),s=require("./type.js"),t=e=>{if(!e)return"none";switch(e){case s.TOAST_TYPE.ERROR:case s.TOAST_TYPE.WARNING:return"none";case s.TOAST_TYPE.SUCCESS:return"success";case s.TOAST_TYPE.NORMAL:default:return"none"}};exports.Toast=s=>{e.i.showToast({title:s.message||"Toast",duration:s.duration||1500,icon:t(s.type)})};
