Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 14x 14x 8x 8x 1x 7x 14x | import { createSelector } from '../../helpers'; export const getLink = createSelector('link'); export const getLinkTypeStyle = (theme, linktype, state) => { const typeStyle = getLink(theme).linkTypes[linktype]; if (!typeStyle) { throw new Error(`There is no ${linktype} link type in the <Link /> theme`); } return typeStyle[state]; }; export const getLinkCommonStyle = theme => getLink(theme).common; |