@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) • 355 B
JavaScript
import { TYPES } from "../../consts";
var resolveFocusColor = function resolveFocusColor(_ref) {
var type = _ref.type,
theme = _ref.theme,
selected = _ref.selected;
if (!selected) return "";
return type === TYPES.LEGROOM ? theme.orbit.paletteBlueNormalHover : theme.orbit.paletteProductNormalHover;
};
export default resolveFocusColor;