in src/components/core/Text/Text.js [74:90]
render() {
const {
type,
...rest
} = this.props;
switch (type) {
case 'h1': return <StyledH1 {...rest} />;
case 'h2': return <StyledH2 {...rest} />;
case 'h3': return <StyledH3 {...rest} />;
case 'h4': return <StyledH4 {...rest} />;
case 'h5': return <StyledH5 {...rest} />;
case 'h6': return <StyledH6 {...rest} />;
case 'p': return <StyledP {...rest} />;
default: return <StyledP {...rest} />;
}
}