import React, {Component} from 'react';
import {cartTexts} from '../../../constants/cartConstants';

class CartIcon extends Component {
    render() {
        let {cartCount} = this.props;
        cartCount = parseInt(cartCount, 10) || 0;

        return (
            <span id="cart-count" className="items-cart-count">
                {cartCount}
            </span>
        );
    }
}

export default CartIcon;
