import { FC } from "react";
import { ListViewItem } from "@/components/StationDiagram/ListViewItem";

export const ListView: FC<{ data: {
    trainNumber: string;
    array: string;
    name: string;
    type: string;
    time: string;
  }[]; }> = ({ data }) => {
  return (
    <>
      {data.map((d, i) => (
        <ListViewItem key={d.trainNumber + i} d={d} />
      ))}
    </>
  );
};
