@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.
19 lines (15 loc) • 545 B
JavaScript
;
exports.__esModule = true;
exports.default = void 0;
var _consts = require("../../consts");
const resolveAccentColor = ({
type,
theme,
selected
}) => {
if (type === _consts.TYPES.LEGROOM) return selected ? theme.orbit.paletteBlueNormal : theme.orbit.paletteBlueLightActive;
if (type === _consts.TYPES.UNAVAILABLE) return theme.orbit.paletteCloudLightActive;
return selected ? theme.orbit.paletteProductNormal : theme.orbit.paletteProductLightActive;
};
var _default = resolveAccentColor;
exports.default = _default;