import PropTypes from 'prop-types'; import React from 'react'; import Box from '../box/box.jsx'; import {defineMessages, injectIntl, intlShape} from 'react-intl'; import RecordingStep from '../../containers/recording-step.jsx'; import PlaybackStep from '../../containers/playback-step.jsx'; import Modal from '../../containers/modal.jsx'; import styles from './record-modal.css'; const messages = defineMessages({ title: { defaultMessage: 'Record Sound', description: 'Recording modal title', id: 'gui.recordModal.title' } }); const RecordModal = props => ( {props.samples ? ( ) : ( )} ); RecordModal.propTypes = { encoding: PropTypes.bool.isRequired, intl: intlShape.isRequired, levels: PropTypes.arrayOf(PropTypes.number), onBack: PropTypes.func.isRequired, onCancel: PropTypes.func.isRequired, onPlay: PropTypes.func.isRequired, onRecord: PropTypes.func.isRequired, onSetPlayhead: PropTypes.func.isRequired, onSetTrimEnd: PropTypes.func.isRequired, onSetTrimStart: PropTypes.func.isRequired, onStopPlaying: PropTypes.func.isRequired, onStopRecording: PropTypes.func.isRequired, onSubmit: PropTypes.func.isRequired, playhead: PropTypes.number, playing: PropTypes.bool, recording: PropTypes.bool, sampleRate: PropTypes.number, samples: PropTypes.instanceOf(Float32Array), trimEnd: PropTypes.number.isRequired, trimStart: PropTypes.number.isRequired }; export default injectIntl(RecordModal);