+
+
-
-
- {data.trainNumber ?? data.routeName ?? "Schedule"}
-
-
- {data.origin ?? "—"} → {data.destination ?? "—"} ·{" "}
- {data.scheduleDate
- ? new Date(data.scheduleDate).toLocaleString()
- : "No date"}
-
-
+
+
+
+ {data.trainNumber ?? data.routeName ?? "Schedule"}
+
+
+ {data.status}
+
+
+
+ }>
+ {data.scheduleDate
+ ? new Intl.DateTimeFormat("en-GB", {
+ weekday: "short",
+ day: "2-digit",
+ month: "short",
+ year: "numeric",
+ hour: "2-digit",
+ minute: "2-digit",
+ hour12: false,
+ timeZone: "Africa/Addis_Ababa",
+ }).format(new Date(data.scheduleDate)) + " EAT"
+ : "No date"}
+
+ {data.locomotive ? (
+ }>
+ Loco {data.locomotive.code} · {fmtTons(data.locomotive.maxPullWeightTons)} ·{" "}
+ {data.locomotive.maxTrainLengthMeters} m
+
+ ) : null}
+
+
-