App.UserBadge = function UserBadge({ userId, nickname, size }) {
    const cls = 'user-badge' + (size === 'small' ? ' user-badge-sm' : '');
    const display = nickname ? nickname + ' (id: ' + userId + ')' : 'id: ' + userId;
    return <span className={cls}>{display}</span>;
};
