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.

19 lines (14 loc) 479 B
// @flow import * as React from "react"; type SetStateAction<S> = S | ((prevState: S) => S); type Dispatch<A> = (value: A) => void; export type Context = {| +setWidths: Dispatch<SetStateAction<number[]>>, +setCalculatedWidth: Dispatch<SetStateAction<number>>, +calculatedWidth: number, |}; export type ProviderProps = {| +children: React.Node, |}; declare export var ItineraryProvider: React.ComponentType<ProviderProps>; declare export function useWidth(): Context;