{"size": 532, "ext": "js", "max_stars_repo_path": "client/components/OrderCard.js", "max_stars_repo_name": "GS-Team-Aspen/Grace-Shopper", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/components/OrderCard.js", "max_issues_repo_name": "GS-Team-Aspen/Grace-Shopper", "max_issues_repo_issues_event_min_datetime": "2021-03-10T04:23:39.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-10T04:23:39.000Z", "max_forks_repo_path": "client/components/OrderCard.js", "max_forks_repo_name": "GS-Team-Aspen/grace-topper", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 19.7037037037, "max_line_length": 59, "alphanum_fraction": 0.477443609}
import React from 'react'
import {Link} from 'react-router-dom'

const OrderCard = ({order}) => {
  return (
    <tr>
      <td>
        <Link to={`/orders/${order.id}`} className="order">
          {order.id}
        </Link>
      </td>
      <td>
        <Link to={`/orders/${order.id}`} className="order">
          {order.status}
        </Link>
      </td>
      <td>
        <Link to={`/orders/${order.id}`} className="order">
          {order.user.email}
        </Link>
      </td>
    </tr>
  )
}

export default OrderCard
