import React from 'react'; import {storiesOf} from '@storybook/react'; // import {action} from '@storybook/addon-actions'; import {withInfo} from '@storybook/addon-info'; import FileSize from 'app/components/fileSize'; import Duration from 'app/components/duration'; import DateTime from 'app/components/dateTime'; import Count from 'app/components/count'; storiesOf('Utility|Formatters', module) .add( 'DateTime', withInfo('Formats number (in ms or seconds) into a datetime string')(() => (
)) ) .add( 'FileSize', withInfo('Formats number of bytes to filesize string')(() => (
)) ) .add( 'Duration', withInfo('Formats number of seconds into a duration string')(() => (
)) ) .add( 'Count', withInfo('Formats numbers into a shorthand string')(() => (
5000000 =
500000000 =
50000 =
)) );