@sendbird/uikit-react
Version:
Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.
33 lines (30 loc) • 1.08 kB
JavaScript
;
/**
* Dashboard UIKitConfig's replyType is consisted of all lowercases,
* we need to convert it into uppercase ones(or vice versa)
* when we pass the value to internal components
* - 'thread' <-> 'THREAD'
* - 'quote_reply' <-> 'QUOTE_REPLY'
*/
function getCaseResolvedReplyType(replyType) {
return {
lowerCase: replyType.toLowerCase(),
upperCase: replyType.toUpperCase(),
};
}
/**
* Dashboard UIKitConfig's threadReplySelectType is consisted of all lowercase letters,
* we need to convert it into uppercase ones(or vice versa)
* when we pass the value to internal components
* - 'thread' <-> 'THREAD'
* - 'parent' <-> 'PARENT'
*/
function getCaseResolvedThreadReplySelectType(threadReplySelectType) {
return {
lowerCase: threadReplySelectType.toLowerCase(),
upperCase: threadReplySelectType.toUpperCase(),
};
}
exports.getCaseResolvedReplyType = getCaseResolvedReplyType;
exports.getCaseResolvedThreadReplySelectType = getCaseResolvedThreadReplySelectType;
//# sourceMappingURL=bundle-BPUhuptz.js.map