@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.
37 lines • 1.66 kB
JavaScript
import { TOKENS, TYPES } from "../consts";
const getButtonLinkTypeToken = (name, type, theme) => {
const tokens = {
[]: {
[]: theme.orbit.backgroundButtonLinkPrimary,
[]: theme.orbit.backgroundButtonLinkSecondary,
[]: theme.orbit.backgroundButtonLinkCritical
},
[]: {
[]: theme.orbit.backgroundButtonLinkPrimaryHover,
[]: theme.orbit.backgroundButtonLinkSecondaryHover,
[]: theme.orbit.backgroundButtonLinkCriticalHover
},
[]: {
[]: theme.orbit.backgroundButtonLinkPrimaryActive,
[]: theme.orbit.backgroundButtonLinkSecondaryActive,
[]: theme.orbit.backgroundButtonLinkCriticalActive
},
[]: {
[]: theme.orbit.colorTextButtonLinkPrimary,
[]: theme.orbit.colorTextButtonLinkSecondary,
[]: theme.orbit.colorTextButtonLinkCritical
},
[]: {
[]: theme.orbit.colorTextButtonLinkPrimaryHover,
[]: theme.orbit.colorTextButtonLinkSecondaryHover,
[]: theme.orbit.colorTextButtonLinkCriticalHover
},
[]: {
[]: theme.orbit.colorTextButtonLinkPrimaryActive,
[]: theme.orbit.colorTextButtonLinkSecondaryActive,
[]: theme.orbit.colorTextButtonLinkCriticalActive
}
};
return tokens[name][type];
};
export default getButtonLinkTypeToken;