// @flow
import React from 'react';
import { SectionHeader } from './section-header.component';
import { MarginChecker } from '../../../mixins/spacing/story-support/margin-checker';
import { PaddingChecker } from '../../../mixins/spacing/story-support/padding-checker';
import { StackeeChecker } from '../../../mixins/stackee/story-support/stackee-checker';
import docs from './section-header.mdx';

export default {
  component: SectionHeader,
  title: '2 - System/Typography/Headings/Section Header',
  parameters: {
    docs: {
      page: docs,
    },
  },
};

export const Default = () => (
  <>
    <SectionHeader size="sm">Small Section Header</SectionHeader>
    <SectionHeader size="lg">Large Section Header</SectionHeader>
  </>
);

export const MixinsSpacing = () => (
  <>
    <MarginChecker Component={SectionHeader}>Hello</MarginChecker>
    <PaddingChecker Component={SectionHeader}>Hello</PaddingChecker>
  </>
);

export const MixinsStackee = () => (
  <StackeeChecker Component={SectionHeader}>Hello</StackeeChecker>
);
