UNPKG

react-flexible-datepicker

Version:
23 lines (22 loc) 726 B
import React, { ReactNode } from 'react'; import { UseFloatingData } from '@floating-ui/react'; declare const initialState = false; interface IPopoverContext { isPanelOpen: boolean; refs: UseFloatingData['refs']; floatingStyles: UseFloatingData['floatingStyles']; getFloatingProps: () => { [key: string]: any; }; getReferenceProps: () => { [key: string]: any; }; close: () => void; } declare const PopoverContext: React.Context<IPopoverContext | null>; interface IPopoverProviderProps { children: ReactNode; } declare const PopoverProvider: ({ children }: IPopoverProviderProps) => React.JSX.Element; export default PopoverProvider; export { PopoverContext, initialState };