// @flow
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';
import { PageTitle } from './index';
import { Box } from '../../../primitives/box';
import { configDocs } from '../../../../.storybook/config-docs';
import docs from './PAGE_TITLE.mkd';

storiesOf('Core/Text/PageTitle', module)
  .addDecorator(withInfo(configDocs(docs, PageTitle)))
  .add('default', () => (
    <Box colorName="background">
      <PageTitle>Page Title</PageTitle>
    </Box>
  ));
