@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.
26 lines (20 loc) • 683 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _consts = require("../../consts");
var resolveCloseIconColor = function resolveCloseIconColor(_ref) {
var type = _ref.type,
theme = _ref.theme,
hover = _ref.hover;
if (hover) {
if (type === _consts.TYPES.UNAVAILABLE) return "";
if (type === _consts.TYPES.LEGROOM) return theme.orbit.paletteBlueDarker;
return theme.orbit.paletteProductDarker;
}
if (type === _consts.TYPES.LEGROOM) return theme.orbit.paletteBlueDarkHover;
return theme.orbit.paletteProductDarkHover;
};
var _default = resolveCloseIconColor;
exports.default = _default;