import React, { Component } from 'react'; import { Icon } from './../elements/Icon'; import PropTypes from 'prop-types'; export default class PlayClipButton extends Component { static propTypes = { isPlaying: PropTypes.bool.isRequired, }; static defaultProps = { isPlaying: false, }; render() { const iconName = this.props.isPlaying ? 'stop' : 'play'; return (
); } }