UNPKG

@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.

12 lines (10 loc) 508 B
import { TYPES } from "../../consts"; var resolveAccentColor = function resolveAccentColor(_ref) { var type = _ref.type, theme = _ref.theme, selected = _ref.selected; if (type === TYPES.LEGROOM) return selected ? theme.orbit.paletteBlueNormal : theme.orbit.paletteBlueLightActive; if (type === TYPES.UNAVAILABLE) return theme.orbit.paletteCloudLightActive; return selected ? theme.orbit.paletteProductNormal : theme.orbit.paletteProductLightActive; }; export default resolveAccentColor;