2019-11-05 17:23:57 +00:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
2020-04-29 22:34:37 +00:00
|
|
|
import CheckIcon from '../../../../images/check_encircled.svg';
|
|
|
|
import CloseIcon from '../../../../images/close.svg';
|
2019-11-05 17:23:57 +00:00
|
|
|
|
|
|
|
const Icons = ({ isAdded }) => {
|
|
|
|
const classes = [
|
|
|
|
'quick-add__icon',
|
|
|
|
isAdded ? 'quick-add__icon--in-collection' : 'quick-add__icon--not-in-collection'
|
|
|
|
].join(' ');
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className={classes}>
|
2020-05-05 23:03:58 +00:00
|
|
|
<CloseIcon className="quick-add__remove-icon" role="img" aria-label="Descending" focusable="false" />
|
|
|
|
<CheckIcon className="quick-add__in-icon" role="img" aria-label="Descending" focusable="false" />
|
|
|
|
<CloseIcon className="quick-add__add-icon" role="img" aria-label="Descending" focusable="false" />
|
2019-11-05 17:23:57 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
Icons.propTypes = {
|
|
|
|
isAdded: PropTypes.bool.isRequired,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Icons;
|