@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) • 742 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@mui/material/Stack"),r=require("@mui/material/Typography");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(t),i=a(r);exports.ReplyAttachmentLabelPlugin=t=>{const{replies:r=0,selected:a,attachments:n,t:c}=t;return e.jsxs(l.default,{direction:"row",children:[!a&&r>0&&e.jsx(i.default,{variant:"caption",sx:{display:"inline-block",mt:2,color:"text.secondary"},children:`${r} ${c(r>1?"replies":"reply")}`}),!a&&n.length>0&&e.jsx(i.default,{variant:"caption",sx:{display:"inline-block",ml:r>0?2:0,mt:2,color:"text.secondary"},children:`${n.length} ${c(n.length>1?"attachments":"attachment")}`})]})};