@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.
31 lines (22 loc) • 810 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _styledComponents = require("styled-components");
var _consts = _interopRequireDefault(require("../consts"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var getCssState = function getCssState(state) {
return function (_ref) {
var theme = _ref.theme;
if (state === _consts.default.HOVER) {
return (0, _styledComponents.css)(["background-color:", ";"], theme.orbit.paletteCloudLightHover);
}
if (state === _consts.default.FOCUS) {
return (0, _styledComponents.css)(["background-color:", ";"], theme.orbit.paletteCloudLight);
}
return null;
};
};
var _default = getCssState;
exports.default = _default;