@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.
15 lines • 442 B
JavaScript
import { TYPES } from "../../consts";
const resolveCloseIconColor = ({
type,
theme,
hover
}) => {
if (hover) {
if (type === TYPES.UNAVAILABLE) return "";
if (type === TYPES.LEGROOM) return theme.orbit.paletteBlueDarker;
return theme.orbit.paletteProductDarker;
}
if (type === TYPES.LEGROOM) return theme.orbit.paletteBlueDarkHover;
return theme.orbit.paletteProductDarkHover;
};
export default resolveCloseIconColor;