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) 579 B
import{jsxs as t,jsx as e}from"react/jsx-runtime";import r from"@mui/material/Stack";import i from"@mui/material/Typography";const n=n=>{const{replies:a=0,selected:o,attachments:l,t:c}=n;return t(r,{direction:"row",children:[!o&&a>0&&e(i,{variant:"caption",sx:{display:"inline-block",mt:2,color:"text.secondary"},children:`${a} ${c(a>1?"replies":"reply")}`}),!o&&l.length>0&&e(i,{variant:"caption",sx:{display:"inline-block",ml:a>0?2:0,mt:2,color:"text.secondary"},children:`${l.length} ${c(l.length>1?"attachments":"attachment")}`})]})};export{n as ReplyAttachmentLabelPlugin};