@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.
18 lines (14 loc) • 397 B
JavaScript
import { css } from "styled-components";
import STATES from "../consts";
const getCssState = state => ({
theme
}) => {
if (state === STATES.HOVER) {
return css(["background-color:", ";"], theme.orbit.paletteCloudLightHover);
}
if (state === STATES.FOCUS) {
return css(["background-color:", ";"], theme.orbit.paletteCloudLight);
}
return null;
};
export default getCssState;