UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

22 lines (16 loc) 616 B
// @flow import * as React from "react"; export type ModalContextProps = {| +setDimensions?: () => void, +decideFixedFooter?: () => void, +setHasModalSection?: () => void, +removeHasModalSection?: () => void, +manageFocus?: () => void, +hasModalSection?: boolean, +isMobileFullPage?: boolean, |}; export type ModalContextType = React.Context<ModalContextProps>; // TODO: write better type export type WithModalContextType = (React$ComponentType<any>) => ({ [key: string]: any }) => any; declare export var ModalContext: ModalContextType; declare export var withModalContext: WithModalContextType;