UNPKG

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

23 lines 1.05 kB
import closeButton from "./resources/close.png"; import { localize } from "../../../shared/resources/CometChatLocalize"; import { MessagePreviewStyle } from "./MessagePreviewStyle"; /** * @class MessagePreviewConfiguration * @description MessagePreviewConfiguration class is used for defining the MessagePreview templates. * @param {String} iconURL * @param {String} text * @param {Object} tail * @param {Function} onItemClick * @param {Number} id */ class MessagePreviewConfiguration { constructor({ messagePreviewTitle = localize("EDIT_MESSAGE"), messagePreviewSubtitle = null, closeIconURL = closeButton, onCloseClick = null, style = new MessagePreviewStyle({}), }) { this.messagePreviewTitle = messagePreviewTitle; this.messagePreviewSubtitle = messagePreviewSubtitle; this.closeIconURL = closeIconURL; this.onCloseClick = onCloseClick; this.style = new MessagePreviewStyle(style ?? {}); } } export { MessagePreviewConfiguration }; //# sourceMappingURL=MessagePreviewConfiguration.js.map