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.

20 lines (19 loc) 563 B
"use strict"; exports.__esModule = true; exports.default = void 0; var _consts = require("../../consts"); const resolveCloseIconColor = ({ type, theme, 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;