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