import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import Box from '../box/box.jsx'; import styles from './audio-trimmer.css'; import SelectionHandle from './selection-handle.jsx'; import Playhead from './playhead.jsx'; const AudioTrimmer = props => (
{props.trimStart === null ? null : ( )} {props.playhead ? ( ) : null} {props.trimEnd === null ? null : ( )}
); AudioTrimmer.propTypes = { containerRef: PropTypes.func, onTrimEndMouseDown: PropTypes.func.isRequired, onTrimStartMouseDown: PropTypes.func.isRequired, playhead: PropTypes.number, trimEnd: PropTypes.number, trimStart: PropTypes.number }; export default AudioTrimmer;