UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

24 lines (23 loc) 874 B
import React from "react"; import { StatusIndicatorStyles } from "./styles"; /** * Props for the CometChatStatusIndicator component. */ export interface CometChatStatusIndicatorInterface { /** * The status type to be displayed. Can be one of: * "online", "offline", "private", "protected", or "public". */ type?: "online" | "offline" | "private" | "protected" | "public" | null; /** * Custom styles for the status indicator. */ style?: Partial<StatusIndicatorStyles>; } /** * CometChatStatusIndicator is a component used for indicating the status of a user or group. * It displays the online/offline or custom status of the user/group using a predefined symbol or style. * * @author CometChat */ export declare const CometChatStatusIndicator: ({ type, style, }: CometChatStatusIndicatorInterface) => React.JSX.Element | null;