UNPKG

@nexusui/components

Version:

These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.

2 lines (1 loc) 556 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@mui/icons-material/Info"),t=require("@mui/icons-material/Warning"),i=require("@mui/icons-material/Settings");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(r),u=a(t),o=a(i);exports.getStatusIcon=r=>{switch(r){case"info":default:return e.jsx(o.default,{sx:{color:"info.main"}});case"warning":return e.jsx(u.default,{sx:{color:"warning.main"}});case"error":return e.jsx(n.default,{sx:{color:"error.main"}})}};