UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

14 lines (13 loc) 600 B
import { Conversation } from "../../../interfaces/models/Conversation"; import { UpdateConversationParams } from "./useUpdateConversation"; export interface UseConversationProps { conversationId: string; } export interface UseConversationValues { conversation: Conversation | null; loading: boolean; update: (params: Omit<UpdateConversationParams, "conversationId">) => Promise<Conversation | undefined>; deleteConversation: () => Promise<void>; } declare function useConversation({ conversationId, }: UseConversationProps): UseConversationValues; export default useConversation;