import { DEFAULT_REL } from '../constants' import Image from './image' import Text from './text' class ShopItem extends PureComponent { render() { const { image, link, name, price, } = this.props return ( {name} { !!price && {price} } ) } } ShopItem.propTypes = { image: PropTypes.string.isRequired, link: PropTypes.string.isRequired, name: PropTypes.string.isRequired, price: PropTypes.string, } export default ShopItem