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
39 lines (38 loc) • 1.29 kB
JavaScript
//@ts-ignore
import waiting from './resources/sending.png';
//@ts-ignore
import greyTick from './resources/grey-tick-icon.png';
//@ts-ignore
import greyDoubleTick from './resources/grey-double-tick-icon.png';
//@ts-ignore
import blueDoubleTick from './resources/blue-double-tick-icon.png';
//@ts-ignore
import errorTick from './resources/error.png';
/**
* @class ReceiptConfiguration
* @description ReceiptConfiguration class is used for defining the MessageReceipt template.
*/
export class ReceiptConfiguration {
waitIcon;
sentIcon;
readIcon;
deliveredIcon;
errorIcon;
/**
*
* @param {Object} param0
* @field {any} waitIcon - icon for Wait
* @field {any} sentIcon - icon for Sent
* @field {any} readIcon - icon for Read
* @field {any} deliveredIcon - icon for Delivered
* @field {any} errorIcon - icon for Error
*/
constructor({ waitIcon = waiting, sentIcon = greyTick, readIcon = greyDoubleTick, deliveredIcon = blueDoubleTick, errorIcon = errorTick, }) {
this.waitIcon = waitIcon;
this.sentIcon = sentIcon;
this.readIcon = readIcon;
this.deliveredIcon = deliveredIcon;
this.errorIcon = errorIcon;
}
}
//# sourceMappingURL=MessageConfiguration.js.map