src/soundCategories/components/SoundCategoryExclusiveButton.jsx
import PropTypes from 'prop-types'
import React from 'react'
import Explicit from '@material-ui/icons/Explicit'
import SoundCategoryIconButton from './SoundCategoryIconButton'
const SoundCategoryExclusiveButton = ({ onClick, exclusive }) => (
<SoundCategoryIconButton
color={exclusive ? 'primary' : 'default'}
icon={Explicit}
onClick={onClick}
/>
)
SoundCategoryExclusiveButton.propTypes = {
exclusive: PropTypes.bool,
onClick: PropTypes.func.isRequired
}
SoundCategoryExclusiveButton.defaultProps = {
exclusive: false
}
export default SoundCategoryExclusiveButton