All files / components/Heading headingSelectors.js

100% Statements 8/8
100% Branches 2/2
100% Functions 4/4
100% Lines 4/4

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    17x   17x   13x   11x  
import { getHeading } from '../../theme/themeSelectors';
 
export const getHeadingSizingStyle = (theme, sizing) => getHeading(theme).sizings[sizing] || {};
 
export const getHeadingColor = (theme, color) => getHeading(theme).colors[color];
 
export const getHeadingOpacity = (theme, emphasis) => getHeading(theme).opacities[emphasis];
 
export const getHeadingCommonStyle = theme => getHeading(theme).common;