// @flow

import type { ThemeProps } from '../../../types';
import type { SectionHeaderProps } from './section-header.proptypes';
import { getFontSize } from '../../../mixins/typography';

export const getHeaderFontSize = ({
  theme,
  size = 'lg',
}: ThemeProps & SectionHeaderProps) => {
  switch (size) {
    case 'lg':
      return getFontSize({ theme, fontSize: 'f2' });
    case 'sm':
      return getFontSize({ theme, fontSize: 'f1' });
    default:
      return getFontSize({ theme, fontSize: 'f2' });
  }
};
