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.

21 lines (17 loc) 439 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _consts = require("../../consts"); const resolveTextColor = ({ type, theme, selected }) => { if (selected) return theme.orbit.paletteWhite; if (type === _consts.TYPES.LEGROOM) return theme.orbit.paletteBlueDark; return theme.orbit.paletteProductDark; }; var _default = resolveTextColor; exports.default = _default;