import React, {Component} from 'react';
import {Link} from 'react-router-dom';

class PackageName extends Component {
    render(){
        const {orderPackage, idCommercialLead} = this.props.params;

        return (
            <div>
                <Link to={'/co-market/' + idCommercialLead + '/' + orderPackage.id } className="package-name-link">{orderPackage.quantity + ' x ' + orderPackage.name}</Link>
            </div>
        );
    }
}

export default PackageName;
