import React from "react"; import { Link } from "react-router"; import StopDataProvider, { type Stop } from "../data/StopDataProvider"; import LineIcon from "./LineIcon"; interface StopGalleryItemProps { stop: Stop; } const StopGalleryItem: React.FC = ({ stop }) => { return (
{stop.favourite && ( )} ({stop.stopId})
{StopDataProvider.getDisplayName(stop)}
{stop.lines?.slice(0, 5).map((line) => ( ))} {stop.lines && stop.lines.length > 5 && ( +{stop.lines.length - 5} )}
); }; export default StopGalleryItem;