/**
 *
 * Heading
 *
 * Section heading
 *
 */
import * as React from 'react';
import '../../styles/global.css';
import styles from './Heading.module.css';
import { HeadingProps } from './types';

export const Heading: React.FC<HeadingProps> = ({ level, ...rest }) => {
  const HeadingElem: string = `h${level}`;
  return <HeadingElem className={styles[HeadingElem]} {...rest} />;
};
