import {FormattedMessage, intlShape, defineMessages} from 'react-intl';
import PropTypes from 'prop-types';
import React from 'react';
import Box from '../box/box.jsx';
import PlayButton from '../../containers/play-button.jsx';
import styles from './library-item.css';
import classNames from 'classnames';
import bluetoothIconURL from './bluetooth.svg';
import internetConnectionIconURL from './internet-connection.svg';
import favoriteInactiveIcon from './favorite-inactive.svg';
import favoriteActiveIcon from './favorite-active.svg';
const messages = defineMessages({
favorite: {
defaultMessage: 'Favorite',
description: 'Alt text of icon in costume, sound, and extension libraries to mark an item as favorite.',
id: 'tw.favorite'
},
unfavorite: {
defaultMessage: 'Unfavorite',
description: 'Alt text of icon in costume, sound, and extension libraries to unmark an item as favorite.',
id: 'tw.unfavorite'
}
});
/* eslint-disable react/prefer-stateless-function */
class LibraryItemComponent extends React.PureComponent {
render () {
const favoriteMessage = this.props.intl.formatMessage(
this.props.favorite ? messages.unfavorite : messages.favorite
);
const favorite = (
);
return this.props.featured ? (