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.

25 lines (16 loc) 494 B
// @flow import type { Translations } from "../Dictionary/index"; export type Key = string; export type Values = { [key: Key]: string | number, }; export type Props = {| tKey: Key, values?: Values, |}; export type PureTranslate = (dictionary: Translations, key: Key, values?: Values) => string; export type Translate = { translate: (tKey: string, values?: Values) => string, }; declare export default React$ComponentType<Props>; declare export var pureTranslate: PureTranslate;