/* This Source Code Form is subject to the terms of the Mozilla Public * License. v. 2.0. If a copy of the MPL was not distributed with this file. * You can obtain one at http://mozilla.org/MPL/2.0/. */ import * as React from 'react' import { StyledH1, StyledH2, StyledH3, StyledH4, StyledH5, StyledH6 } from './style' export interface HeadingProps { testId?: string level?: number className?: string children?: React.ReactNode } export default class Heading extends React.PureComponent { render () { const { testId, level, children, className } = this.props switch (level) { case 1: return {children} case 2: return {children} case 3: return {children} case 4: return {children} case 5: return {children} case 6: return {children} default: return {children} } } }