You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
485 B
TypeScript
13 lines
485 B
TypeScript
import * as React from 'react';
|
|
import { DropdownAction, DropdownState } from './useDropdown.types';
|
|
export interface DropdownContextValue {
|
|
dispatch: React.Dispatch<DropdownAction>;
|
|
popupId: string;
|
|
registerPopup: (popupId: string) => void;
|
|
registerTrigger: (element: HTMLElement | null) => void;
|
|
state: DropdownState;
|
|
triggerElement: HTMLElement | null;
|
|
}
|
|
declare const DropdownContext: React.Context<DropdownContextValue | null>;
|
|
export { DropdownContext };
|