react-native-chating-ui-kit
Version:
CometChat React Native UI Kit is a collection of custom UI Components designed to build text , chat and calling features in your application. The UI Kit is developed to keep developers in mind and aims to reduce development efforts significantly
21 lines • 817 B
JavaScript
import { ChatConfigurator, } from '../../shared/framework';
import { SmartRepliesDecorator } from './SmartRepliesDecorator';
export class SmartRepliesExtension {
SmartRepliesConfigurationInterface;
constructor(SmartRepliesConfigurationConfiguration) {
if (SmartRepliesConfigurationConfiguration != null) {
this.SmartRepliesConfigurationInterface =
SmartRepliesConfigurationConfiguration;
}
}
/**
* enable
* @description enables the Text moderation extension which includes Data profanity and data masking
*/
enable() {
ChatConfigurator.enable((dataSource) => {
return new SmartRepliesDecorator(dataSource, this.SmartRepliesConfigurationInterface);
});
}
}
//# sourceMappingURL=SmartRepliesExtension.js.map