UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

53 lines (52 loc) 1.97 kB
import { CometChatTheme } from "../../theme/type"; import { DeepPartial } from "../../shared/helper/types"; import { JSX } from "react"; /** * Props for the CometChatMeetCallBubble component. * * @interface CometChatMeetCallBubbleInterface */ export interface CometChatMeetCallBubbleInterface { /** Title text to be displayed in the bubble */ titleText: string; /** Subtitle text to be displayed under the title */ subTitleText: string; /** Text to be displayed on the button */ buttonText: string; /** JSX element to display as an icon */ icon: JSX.Element; /** Callback function to be executed on button press */ onClick: () => void; /** Custom style overrides for the meet call bubble */ style: DeepPartial<CometChatTheme["meetCallBubbleStyles"]>; } /** * Component representing a meet call bubble. * * @param {CometChatMeetCallBubbleInterface} props - Component properties. * @returns {JSX.Element} The rendered component. */ export declare const CometChatMeetCallBubble: (props: CometChatMeetCallBubbleInterface) => JSX.Element; /** * Props for the CometChatCallActionBubble component. * * @interface CometChatUserCallBubbleInterface */ export interface CometChatUserCallBubbleInterface { /** Title text to be displayed (e.g., call status) */ titleText: string; /** JSX element to display as an icon */ icon: JSX.Element; /** Optional custom style overrides for the call action bubble */ style?: DeepPartial<CometChatTheme["messageListStyles"]["callActionBubbleStyles"]>; } /** * Component representing a call action bubble. * * This component displays a call action with an icon and text. * It differentiates styles if the call is missed. * * @param {CometChatUserCallBubbleInterface} props - Component properties. * @returns {JSX.Element} The rendered component. */ export declare const CometChatCallActionBubble: (props: CometChatUserCallBubbleInterface) => JSX.Element;