import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import SkipPreviousIcon from '@material-ui/icons/SkipPrevious'; import PlayArrowIcon from '@material-ui/icons/PlayArrow'; import SkipNextIcon from '@material-ui/icons/SkipNext'; import { Typography, Card, CardMedia, CardContent, IconButton } from '@material-ui/core'; import styles from './cardStyle-jss'; class PlayerCard extends React.Component { state = { expanded: false }; handleExpandClick = () => { this.setState({ expanded: !this.state.expanded }); }; render() { const { classes, theme, title, artist, cover, } = this.props; return (
{title} {artist}
{theme.direction === 'rtl' ? : } {theme.direction === 'rtl' ? : }
); } } PlayerCard.propTypes = { classes: PropTypes.object.isRequired, theme: PropTypes.object.isRequired, title: PropTypes.string.isRequired, artist: PropTypes.string.isRequired, cover: PropTypes.string.isRequired, }; export default withStyles(styles, { withTheme: true })(PlayerCard);