{
if ((settings.store as any).unsafeViewAsRole && permission.type === PermissionType.Role)
ContextMenu.open(e, () => (
));
}}
>
{(permission.type === PermissionType.Role || permission.type === PermissionType.Owner) && (
)}
{permission.type === PermissionType.User && user !== undefined && (
)}
{
permission.type === PermissionType.Role
? role?.name || "Unknown Role"
: permission.type === PermissionType.User
? (user && getUniqueUsername(user)) || "Unknown User"
: (
@owner
)
}