@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.
31 lines (23 loc) • 543 B
Flow
// @flow
import { ReactComponentStyled, Translation } from "styled-components";
type ImageObject = {|
jpg: string,
webp: string,
|};
export type Props = {|
placeholder?: ImageObject,
original: ImageObject,
name: Translation,
|};
export type State = {|
loaded: boolean,
|};
export type PictureProps = {|
pictures: ImageObject,
name: string,
loaded: boolean,
onLoad?: () => void,
lowRes?: boolean,
|};
declare export default React$ComponentType<Props>;
declare export var StyledLazyImage: ReactComponentStyled<any>;