@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.
13 lines (11 loc) • 431 B
JavaScript
import { TYPES } from "../../consts";
const resolveAccentColor = ({
type,
theme,
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;