@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.
32 lines (26 loc) • 779 B
Flow
// @flow
import type { ReactComponentStyled } from "styled-components";
import type { Carrier } from "../CarrierLogo";
import type { Globals } from "../common/common.js.flow";
export type ExpandedType = {|
expanded: boolean,
|};
export type State = {|
...ExpandedType,
initialExpanded: boolean,
|};
export type Props = {|
...Globals,
+children: React$Node,
+carrier: Carrier,
+departure: string,
+departureTime: string,
+arrival: string,
+arrivalTime: string,
+duration: string | number,
+initialExpanded?: boolean,
+onClick?: () => void | Promise<any>,
|};
declare export default React$ComponentType<Props>;
declare export var StyledTripSegment: ReactComponentStyled<any>;
declare export var StyledTripSegmentMilestone: ReactComponentStyled<any>;