UNPKG

react-19-kit

Version:

Ready-to-use Chat UI Components for React(Javascript/Web)

13 lines (12 loc) 467 B
import { MouseEvent } from "react"; export declare const useCometChatDropDown: ({ selectedOption, onOptionsChanged, }: { selectedOption?: string | undefined; onOptionsChanged?: (({ value: string }: { value?: string | undefined; }) => void) | undefined; }) => { selectedOptionState: string; dropdownVisible: boolean; onButtonClick: (event: MouseEvent<HTMLButtonElement>) => void; onOptionClick: (selectedOption: string) => void; };