Skip to content
Snippets Groups Projects
FlightCard.tsx 668 B
Newer Older
import { IFlight } from '../../../services/Dashboard/CustomerDashboard';
import { airportCode } from '../../../helpers/Airports';
import './FlightCard.scss';

interface IFlightCard {
  flight: IFlight;
}

function FlightCard({ flight }: IFlightCard) {
  return (
    <>
      <div className='flight-card'>
        <span>{flight.id}</span>
        <span className='flight-path'>{airportCode(flight.origin)} - {airportCode(flight.destination)}</span>
        <span>{flight.origin} - {flight.destination}</span>