@sendbird/uikit-utils
Version:
A collection of utility functions and constants for building chat UI components with Sendbird UIKit.
15 lines (14 loc) • 332 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getUserUniqId = getUserUniqId;
exports.ifOperator = ifOperator;
function ifOperator(role, then, or) {
if (role === 'operator') return then;
return or;
}
function getUserUniqId(user) {
return user.userId;
}
//# sourceMappingURL=user.js.map