// @flow
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withDocs } from '../../../.storybook/with-docs';
import docs from './USE-BREAK-POINT.mkd';
import { useBreakPoint } from '.';

storiesOf('Hooks/useBreakPoint', module).add(
  'normal',
  withDocs(docs)(() => {
    const breakPoint = useBreakPoint();

    return (
      <div>
        {`Resize window to see the value of breakPoint change. Current value: ${breakPoint}`}
      </div>
    );
  }),
);
