import React from 'react';
import { storiesOf } from '@storybook/react';
import { VoiceSearch, SearchBox } from '../packages/react-instantsearch-dom';
import { WrapWithHits } from './util';
import type { InnerComponentProps } from '../packages/react-instantsearch-dom/src/components/VoiceSearch';
const stories = storiesOf('VoiceSearch', module);
stories
.add('default', () => (
To see this button disabled, test it on unsupported browsers like
Safari, Firefox, etc.
status: {status}
errorCode: {errorCode}
isListening: {isListening ? 'true' : 'false'}
transcript: {transcript}
isSpeechFinal: {isSpeechFinal ? 'true' : 'false'}
isBrowserSupported: {isBrowserSupported ? 'true' : 'false'}
status: {status}
errorCode: {errorCode}
isListening: {isListening ? 'true' : 'false'}
transcript: {transcript}
isSpeechFinal: {isSpeechFinal ? 'true' : 'false'}
isBrowserSupported: {isBrowserSupported ? 'true' : 'false'}