UNPKG

@web3mq/react-components

Version:
12 lines (11 loc) 573 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; }>) => React.JSX.Element; export declare const useMessageInputContext: (componentName?: string | undefined) => MessageInputContextValue;