@sendbird/uikit-react
Version:
Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.
17 lines (15 loc) • 663 B
JavaScript
/**
* This function helps consider the every condition
* related to enabling emoji reaction feature.
*/
function getIsReactionEnabled(_a) {
var channel = _a.channel, config = _a.config, moduleLevel = _a.moduleLevel;
if (!channel || channel.isBroadcast || channel.isEphemeral) {
return false;
}
if (channel.isSuper)
return moduleLevel !== null && moduleLevel !== void 0 ? moduleLevel : config.groupChannel.enableReactionsSupergroup;
return moduleLevel !== null && moduleLevel !== void 0 ? moduleLevel : config.groupChannel.enableReactions;
}
export { getIsReactionEnabled as g };
//# sourceMappingURL=bundle-BTpGKOuy.js.map