import React from 'react'; import orderBy from 'lodash.orderby'; import { storiesOf } from '@storybook/react'; import { boolean, number, array } from '@storybook/addon-knobs'; import { Panel, RefinementList, SearchBox } from 'react-instantsearch-dom'; import { WrapWithHits } from './util'; const stories = storiesOf('RefinementList', module); stories .add('default', () => ( )) .add('with selected item', () => ( )) .add('with show more', () => ( )) .add('with search inside items', () => ( )) .add('with the sort strategy changed', () => ( orderBy(items, ['label', 'count'], ['asc', 'desc']) } /> )) .add('with Panel', () => ( )) .add('with Panel but no refinement', () => (
)) .add('playground', () => ( ));