@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.67 kB
JavaScript
import { TOKENS, TYPES } from "../consts";
const getButtonLinkTypeToken = (name, type, theme) => {
const tokens = {
[]: {
[]: theme.orbit.buttonLinkPrimaryBackground,
[]: theme.orbit.buttonLinkSecondaryBackground,
[]: theme.orbit.buttonLinkCriticalBackground
},
[]: {
[]: theme.orbit.buttonLinkPrimaryBackgroundHover,
[]: theme.orbit.buttonLinkSecondaryBackgroundHover,
[]: theme.orbit.buttonLinkCriticalBackgroundHover
},
[]: {
[]: theme.orbit.buttonLinkPrimaryBackgroundActive,
[]: theme.orbit.buttonLinkSecondaryBackgroundActive,
[]: theme.orbit.buttonLinkCriticalBackgroundActive
},
[]: {
[]: theme.orbit.buttonLinkPrimaryForeground,
[]: theme.orbit.buttonLinkSecondaryForeground,
[]: theme.orbit.buttonLinkCriticalForeground
},
[]: {
[]: theme.orbit.buttonLinkPrimaryForegroundHover,
[]: theme.orbit.buttonLinkSecondaryForegroundHover,
[]: theme.orbit.buttonLinkCriticalForegroundHover
},
[]: {
[]: theme.orbit.buttonLinkPrimaryForegroundActive,
[]: theme.orbit.buttonLinkSecondaryForegroundActive,
[]: theme.orbit.buttonLinkCriticalForegroundActive
}
};
return tokens[name][type];
};
export default getButtonLinkTypeToken;