import PropTypes from 'prop-types'; import React from 'react'; import Box from '../box/box.jsx'; import Waveform from '../waveform/waveform.jsx'; import Meter from '../meter/meter.jsx'; import AudioTrimmer from '../../containers/audio-trimmer.jsx'; import {defineMessages, injectIntl, intlShape} from 'react-intl'; import styles from './record-modal.css'; import backIcon from './icon--back.svg'; import stopIcon from './icon--stop-playback.svg'; import playIcon from './icon--play.svg'; const messages = defineMessages({ stopMsg: { defaultMessage: 'Stop', description: 'Stop/Play button in recording playback', id: 'gui.playbackStep.stopMsg' }, playMsg: { defaultMessage: 'Play', description: 'Stop/Play button in recording playback', id: 'gui.playbackStep.playMsg' }, loadingMsg: { defaultMessage: 'Loading...', description: 'Loading/Save button in recording playback', id: 'gui.playbackStep.loadingMsg' }, saveMsg: { defaultMessage: 'Save', description: 'Loading/Save button in recording playback', id: 'gui.playbackStep.saveMsg' }, reRecordMsg: { defaultMessage: 'Re-record', description: 'Button to re-record sound in recording playback', id: 'gui.playbackStep.reRecordMsg' } }); const PlaybackStep = props => ( ); PlaybackStep.propTypes = { encoding: PropTypes.bool.isRequired, intl: intlShape.isRequired, levels: PropTypes.arrayOf(PropTypes.number).isRequired, onBack: PropTypes.func.isRequired, onPlay: PropTypes.func.isRequired, onSetTrimEnd: PropTypes.func.isRequired, onSetTrimStart: PropTypes.func.isRequired, onStopPlaying: PropTypes.func.isRequired, onSubmit: PropTypes.func.isRequired, playhead: PropTypes.number, playing: PropTypes.bool.isRequired, trimEnd: PropTypes.number.isRequired, trimStart: PropTypes.number.isRequired }; export default injectIntl(PlaybackStep);