@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.
39 lines (33 loc) • 1.16 kB
TypeScript
// @flow
// Type definitions for @kiwicom/orbit-components
// Project: http://github.com/kiwicom/orbit
import * as React from "react";
import * as Common from "../../common/common";
declare module "@kiwicom/orbit-components/lib/DestinationCard";
interface Props extends Common.Global {
readonly departureCity: Common.Translation;
readonly destinationCity: Common.Translation;
readonly destinationCountry: Common.Translation;
readonly image: string;
readonly price: Common.Translation;
readonly timeOfStay?: Common.Translation;
readonly height?: number;
readonly tabIndex?: string | number;
readonly outbound: {
readonly text?: Common.Translation;
readonly date?: Common.Translation;
readonly type: Common.Translation;
readonly duration: Common.Translation;
};
readonly inbound?: {
readonly date: Common.Translation;
readonly type: Common.Translation;
readonly duration: Common.Translation;
};
readonly onClick?: () => void;
}
interface State {
hiddenContentHeight: number;
}
declare class DestinationCard extends React.Component<Props, State> {}
export { DestinationCard, DestinationCard as default };