= ({ from, to }) => {
+ const changeType = detectStationChange(from, to);
+
+ if (changeType === "noChange") {
+ return ;
+ }
+
+ if (changeType === "city") {
+ return (
+
+
+ {"\u2192"}
+
+
+ );
+ }
+
+ // airport or terminal — same city
+ return (
+
+ {from.scheduled.city}
+ {formatAirportWithTerminal(from)}
+ {"\u2192"}
+ {formatAirportWithTerminal(to)}
+
+ );
+};