@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.
11 lines (9 loc) • 349 B
JavaScript
import { TYPES } from "../../consts";
var resolveHoverColor = function resolveHoverColor(_ref) {
var theme = _ref.theme,
type = _ref.type;
if (type === TYPES.UNAVAILABLE) return "";
if (type === TYPES.LEGROOM) return theme.orbit.paletteBlueLightHover;
return theme.orbit.paletteProductLightHover;
};
export default resolveHoverColor;