@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) • 641 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@mui/material/Stack"),r=require("./constant.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(t);exports.EmptyStateComponent=t=>{const{iconComponent:n,headerComponent:i,descriptionComponent:a,actionComponent:s,sx:u,...c}=t;return e.jsxs(o.default,{alignItems:"center",justifyContent:"center","data-testid":`${r.prefix}-root`,className:`${r.prefix}-root`,sx:[{height:"100%",width:"100%",mx:"auto",textAlign:"center",pointerEvents:"auto"},...Array.isArray(u)?u:[u]],...c,children:[n,i,a,s]})};