@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.
29 lines (25 loc) • 597 B
Flow
// @flow
import * as React from "react";
export type Context = {|
+isNextHidden: boolean,
+noElevation: boolean,
+isHidden: boolean,
+index: number,
+opened: boolean,
+toggleOpened: () => void,
+last: boolean,
+count: number,
|};
export type ProviderProps = {|
+children: React.Node,
+noElevation: boolean,
+isNextHidden: boolean,
+isHidden: boolean,
+index: number,
+opened: boolean,
+toggleOpened: () => void,
+last: boolean,
+count: number,
|};
declare export var ItinerarySegmentContext: React.Context<Context>;
declare export function usePart(): Context;