@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
23 lines (22 loc) • 645 B
text/typescript
import React from "react";
import { CallBubbleStyle, CallBubbleStyleInterface } from "./CallBubbleStyle";
import { ImageType } from "../../shared";
export interface CallBubbleConfigurationInterface {
icon?: ImageType,
onClick?: () => void,
style?: CallBubbleStyleInterface,
}
export class CallBubbleConfiguration implements CallBubbleConfigurationInterface {
icon?: ImageType
onClick?: () => void
style?: CallBubbleStyle
constructor({
icon,
onClick,
style
}: CallBubbleConfigurationInterface) {
this.icon = icon;
this.onClick = onClick;
this.style = style;
}
}