@equinor/mad-toast
Version:
Toast package built on top of `react-native-toast-message`
18 lines (16 loc) • 361 B
JavaScript
// src/utils/getIconNameForToastType.ts
var getIconNameForToastType = (type) => {
switch (type) {
case "error":
return "alert-circle-outline";
case "warning":
return "alert-outline";
case "success":
return "check-circle-outline";
case "info":
return "information-outline";
}
};
export {
getIconNameForToastType
};