@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
15 lines (14 loc) • 677 B
TypeScript
import React, { ReactNode } from "react";
import { UseConversationDataValues } from "../hooks/chat/useConversationData";
export interface ConversationContextValue extends UseConversationDataValues {
conversationId: string;
}
export declare const ConversationContext: React.Context<Partial<ConversationContextValue>>;
export declare function useConversationContext(): Partial<ConversationContextValue>;
export interface ConversationProviderProps {
conversationId: string;
/** Called when the conversation is deleted by an admin */
onDeleted?: () => void;
children: ReactNode;
}
export declare const ConversationProvider: React.FC<ConversationProviderProps>;