@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.
12 lines (10 loc) • 370 B
JavaScript
import { TYPES } from "../../consts";
var resolveTextColor = function resolveTextColor(_ref) {
var type = _ref.type,
theme = _ref.theme,
selected = _ref.selected;
if (selected) return theme.orbit.paletteWhite;
if (type === TYPES.LEGROOM) return theme.orbit.paletteBlueDark;
return theme.orbit.paletteProductDark;
};
export default resolveTextColor;