import { Link } from 'react-router-dom'; import { IFlight } from '../../../services/Dashboard/CustomerDashboard'; import './FlightCard.scss'; interface IFlightCard { flight: IFlight; } function FlightCard({ flight }: IFlightCard) { return ( <> <div className='flight-card'> <span>{flight.id}</span> {/* <span className='flight-path'>{flight.origin} - {flight.destination}</span> */} <span>{flight.origin} - {flight.destination}</span> <Link to={'/flights/' + flight.id}>View Flight</Link> </div> </> ); } export default FlightCard;