@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.
18 lines (13 loc) • 422 B
Flow
// @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[]>>,
+calculatedWidth: number,
|};
export type ProviderProps = {|
+children: React.Node,
|};
declare export var ItineraryProvider: React.ComponentType<ProviderProps>;
declare export function useWidth(): Context;