UNPKG

web3-mq-react

Version:
12 lines (11 loc) 567 B
import React, { PropsWithChildren } from 'react'; export declare type MessageInputContextValue = { isThread: boolean; sendMessage: (text: string) => void; closeReply: () => void; }; export declare const MessageInputContext: React.Context<MessageInputContextValue | undefined>; export declare const MessageInputContextProvider: ({ children, value, }: React.PropsWithChildren<{ value: MessageInputContextValue; }>) => JSX.Element; export declare const useMessageInputContext: (componentName?: string | undefined) => MessageInputContextValue;