+ {Connection}
-
+
);
}
+type Line = {
+ label: string;
+ headsign: string;
+};
type Connection = {
label: string;
+ destination: string;
+ line: Line;
connections: Connection[];
};
const connections: Connection[] = [
{
- label: "Connection 1",
+ label: "Line/Train/Bus 1",
+ destination: "Destination 1",
+ line: {
+ label: "Line 1",
+ headsign: "Headsign 1",
+ },
connections: [
{
- label: "Connection 1.1",
+ label: "Line/Train/Bus 1.1",
+ destination: "Destination 1",
+ line: {
+ label: "Line 1",
+ headsign: "Headsign 1",
+ },
connections: [
{
- label: "Connection 1.1.1",
+ label: "Line/Train/Bus 1.1.1",
+ destination: "Destination 1.1",
+ line: {
+ label: "Line 1.1",
+ headsign: "Headsign 1.1",
+ },
connections: [],
},
{
- label: "Connection 1.1.2",
+ label: "Line/Train/Bus 1.1.2",
+ destination: "Destination 1.1.2",
+ line: {
+ label: "Line 1.1.2",
+ headsign: "Headsign 1.1.2",
+ },
connections: [
{
- label: "Connection 1.1.2.1",
+ label: "Line/Train/Bus 1.1.2.1",
+ destination: "Destination 1.1.2",
+ line: {
+ label: "Line 1.1.2",
+ headsign: "Headsign 1.1.2",
+ },
connections: [],
},
{
- label: "Connection 1.1.2.2",
+ label: "Line/Train/Bus 1.1.2.2",
+ destination: "Destination 1.1.2.2",
+ line: {
+ label: "Line 1.1.2.2",
+ headsign: "Headsign 1.1.2.2",
+ },
connections: [],
},
],
@@ -56,33 +101,68 @@ const connections: Connection[] = [
],
},
{
- label: "Connection 1.2",
+ label: "Line/Train/Bus 1.2",
+ destination: "Destination 1.2",
+ line: {
+ label: "Line 1.2",
+ headsign: "Headsign 1.2",
+ },
connections: [],
},
],
},
{
- label: "Connection 2",
+ label: "Line/Train/Bus 2",
+ destination: "Destination 2",
+ line: {
+ label: "Line 2",
+ headsign: "Headsign 2",
+ },
connections: [
{
- label: "Connection 2.1",
+ label: "Line/Train/Bus 2.1",
+ destination: "Destination 2.1",
+ line: {
+ label: "Line 2.1",
+ headsign: "Headsign 2.1",
+ },
connections: [],
},
{
- label: "Connection 2.2",
+ label: "Line/Train/Bus 2.2",
+ destination: "Destination 2.2",
+ line: {
+ label: "Line 2.2",
+ headsign: "Headsign 2.2",
+ },
connections: [],
},
],
},
{
- label: "Connection 3",
+ label: "Line/Train/Bus 3",
+ destination: "Destination 3",
+ line: {
+ label: "Line 3",
+ headsign: "Headsign 3",
+ },
connections: [
{
- label: "Connection 3.1",
+ label: "Line/Train/Bus 3.1",
+ destination: "Destination 3.1",
+ line: {
+ label: "Line 3.1",
+ headsign: "Headsign 3.1",
+ },
connections: [],
},
{
- label: "Connection 3.2",
+ label: "Line/Train/Bus 3.2",
+ destination: "Destination 3.2",
+ line: {
+ label: "Line 3.2",
+ headsign: "Headsign 3.2",
+ },
connections: [],
},
],
Test