@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.
18 lines (14 loc) • 523 B
JavaScript
import { TYPES } from "../../consts";
var resolveCloseIconColor = function resolveCloseIconColor(_ref) {
var type = _ref.type,
theme = _ref.theme,
hover = _ref.hover;
if (hover) {
if (type === TYPES.UNAVAILABLE) return "";
if (type === TYPES.LEGROOM) return theme.orbit.paletteBlueDarker;
return theme.orbit.paletteProductDarker;
}
if (type === TYPES.LEGROOM) return theme.orbit.paletteBlueDarkHover;
return theme.orbit.paletteProductDarkHover;
};
export default resolveCloseIconColor;