import React from 'react';
import ScheduleRow from './ScheduleRow';
import ScheduleCell from './ScheduleCell';
const widths = [85, 85, 85, 85, 400, 150];
const colours = {
LANDED: '#6FB165',
ENROUTE: '#3197E5',
CANCELLED: '#E54331',
};
const Schedule = ({ data }) => {
return (
Pilot
Date
Depart
Arrive
Destination
Gate
Status
{data?.length > 0 &&
data.map((row, i) => {
return (
{row.name}
{row.date}
{row.startTime}
{row.endTime}
{row.description?.length
? row.description
: row.backseat
? 'backseat'
: undefined}
{row.location}
{row.status}
);
})}
);
};
export default Schedule;