stream-chat-react
Version:
React components to create chat conversations or livestream style chat
13 lines (12 loc) • 570 B
TypeScript
import type { ReactEventHandler } from 'react';
import React from 'react';
import type { LocalMessage } from 'stream-chat';
import type { PropsWithChildrenOnly } from '../types/types';
export interface MessageBounceContextValue {
handleDelete: ReactEventHandler;
handleEdit: ReactEventHandler;
handleRetry: ReactEventHandler;
message: LocalMessage;
}
export declare function useMessageBounceContext(componentName?: string): MessageBounceContextValue;
export declare function MessageBounceProvider({ children }: PropsWithChildrenOnly): React.JSX.Element;