{t(RECIPIENT_ROLES_DESCRIPTION[role].roleNamePlural)}
{roleRecipients.length === 0 && (
No recipients with this role
)}
{roleRecipients.map((recipient) => (
r.id === recipient.id),
0,
),
).comboxBoxItem,
{
'text-muted-foreground': recipient.sendStatus === SendStatus.SENT,
'cursor-not-allowed': isRecipientDisabled(recipient.id),
},
)}
onSelect={() => {
if (!isRecipientDisabled(recipient.id)) {
onSelectedRecipientChange(recipient);
}
}}
>
{recipient.name && (
{recipient.name} ({recipient.email})
)}
{!recipient.name && {recipient.email}}
{!isRecipientDisabled(recipient.id) ? (
) : (
This document has already been sent to this recipient. You can no longer
edit this recipient.
)}
))}
))}