import React from "react"; import { Link } from "react-router-dom"; import "./Card.css"; const Card = (props) => { let diff = props.latest - props.prior; if (diff >= 0) { diff = "+" + diff.toString(); } return (
{props.latest} {props.suffix}{" "} ({diff} {props.suffix})