import React from "react"
import {Link} from "react-router-dom"


export const CarTableRow = props =>
{
    return (
    <tr>
        <td>{props.car.model}</td>
        <td>{props.car.colour}</td>
        <td>{props.car.year}</td>
        <td>{props.car.price}</td>
        <td>
            <Link className="green-button" to={"/EditCar/" + props.car._id}>Edit</Link>                    
            <Link className="red-button" to={"/DeleteCar/" + props.car._id}>Delete</Link>   
        </td>
    </tr>
    )
}