import React from 'react'; import { storiesOf } from '@storybook/react'; import { Panel, Stats, RelevantSort } from 'react-instantsearch-dom'; import { WrapWithHits } from './util'; const stories = storiesOf('Stats', module); stories .add('default', () => (
)) .add('with Panel', () => ( )) .add('with sorted hits', () => (
(
{isRelevantSorted ? 'We removed some search results to show you the most relevant ones' : 'Currently showing all results'}
)} buttonTextComponent={({ isRelevantSorted }) => (
{isRelevantSorted ? 'See all results' : 'See relevant results'}
)} />
));