@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) • 496 B
JavaScript
import{jsxs as t}from"react/jsx-runtime";import o from"@mui/material/Stack";import{prefix as e}from"./constant.js";const n=n=>{const{iconComponent:r,headerComponent:i,descriptionComponent:a,actionComponent:m,sx:s,...c}=n;return t(o,{alignItems:"center",justifyContent:"center","data-testid":`${e}-root`,className:`${e}-root`,sx:[{height:"100%",width:"100%",mx:"auto",textAlign:"center",pointerEvents:"auto"},...Array.isArray(s)?s:[s]],...c,children:[r,i,a,m]})};export{n as EmptyStateComponent};