@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.
39 lines (37 loc) • 1.48 kB
JavaScript
import { TOKENS, TYPES } from "../consts";
const getButtonLinkTypeToken = (name, type, theme) => {
const tokens = {
[]: {
[]: "transparent",
[]: "transparent",
[]: "transparent"
},
[]: {
[]: theme.orbit.paletteProductLightHover,
[]: theme.orbit.paletteCloudLightHover,
[]: theme.orbit.paletteRedLightHover
},
[]: {
[]: theme.orbit.paletteProductLightActive,
[]: theme.orbit.paletteCloudLightActive,
[]: theme.orbit.paletteRedLightActive
},
[]: {
[]: theme.orbit.colorTextButtonLinkPrimary,
[]: theme.orbit.colorTextButtonLinkSecondary,
[]: theme.orbit.paletteRedNormal
},
[]: {
[]: theme.orbit.colorTextButtonLinkPrimaryHover,
[]: theme.orbit.colorTextButtonLinkSecondaryHover,
[]: theme.orbit.paletteRedDarkHover
},
[]: {
[]: theme.orbit.colorTextButtonLinkPrimaryActive,
[]: theme.orbit.colorTextButtonLinkSecondaryActive,
[]: theme.orbit.paletteRedDarkActive
}
};
return tokens[name][type];
};
export default getButtonLinkTypeToken;