駅時刻表のコア情報を作成
This commit is contained in:
18
components/StationDiagram/ListView.tsx
Normal file
18
components/StationDiagram/ListView.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
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} />
|
||||
))}
|
||||
</>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user