UNPKG

web3-mq-react

Version:
13 lines (12 loc) 658 B
import React, { PropsWithChildren } from 'react'; import type { ThreadHeaderProps } from '../components/Thread/ThreadHeader'; export declare type ComponentContextValue = { Message: React.ComponentType<any>; Input: React.ComponentType<any>; ThreadHeader: React.ComponentType<ThreadHeaderProps>; }; export declare const ComponentContext: React.Context<ComponentContextValue | undefined>; export declare const ComponentProvider: ({ children, value, }: React.PropsWithChildren<{ value: ComponentContextValue; }>) => JSX.Element; export declare const useComponentContext: (componentName?: string | undefined) => ComponentContextValue;