@bothub-chat/ui
Version:
Bothub UI Components
10 lines (9 loc) • 520 B
TypeScript
import React from 'react';
export interface SelectFieldContextValue {
selectRef: React.RefObject<HTMLElement>;
handleSelectClick: React.MouseEventHandler<HTMLElement>;
}
export declare const SelectFieldContext: React.Context<SelectFieldContextValue>;
export declare const SelectFieldProvider: React.FC<SelectFieldContextValue & React.PropsWithChildren>;
export declare const SelectFieldConsumer: React.Consumer<SelectFieldContextValue>;
export declare const useSelectFieldContext: () => SelectFieldContextValue;