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.

21 lines (20 loc) 933 B
import * as React from "react"; export interface Props { readonly setDimensions?: () => void; readonly decideFixedFooter?: () => void; readonly setHasModalTitle?: React.Dispatch<React.SetStateAction<boolean>>; readonly setHasModalSection?: () => void; readonly removeHasModalSection?: () => void; readonly callContextFunctions?: () => void; readonly setFooterHeight?: React.Dispatch<React.SetStateAction<number>>; readonly manageFocus?: () => void; readonly hasModalSection?: boolean; readonly hasMobileHeader?: boolean; readonly isMobileFullPage?: boolean; readonly isInsideModal?: boolean; readonly closable?: boolean; readonly titleID?: string; } export declare const ModalContext: React.Context<Props>; export declare const withModalContext: (Component: React.ComponentType<Props>) => (props: Props) => React.JSX.Element; export declare const useModalContext: () => Props;