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.

33 lines (25 loc) 726 B
// @flow /* DOCUMENTATION: https://orbit.kiwi/components/carrierlogo/ */ import * as React from "react"; import type { StyledComponent } from "styled-components"; import type { Globals } from "../common/common.js.flow"; export type Carrier = {| code: string, name: string, type?: "airline" | "bus" | "train" | "ferry" | "private_transfer" | "kiwicom", |}; type Size = "small" | "medium" | "large"; export type Props = {| +size?: Size, +rounded?: boolean, +carriers: Carrier[], ...Globals, |}; type styledCarrierLogo = {| size: Size, carriers: Carrier, |}; declare export var StyledCarrierLogo: StyledComponent<styledCarrierLogo, any, HTMLElement>; declare export default React.ComponentType<Props>;