Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 18x 18x | import React from "react";
import { TrimetRoute } from "../../../api/trimet/interfaces/types";
import { useStopArrivals } from "../../../state/arrivals/ArrivalsProvider";
import StopComponent from "../components/StopComponent";
interface Props {
locationId: number;
showArrivals: boolean;
onRouteIndicatorClick?: (route: TrimetRoute) => void;
}
export default function StopContainer(props: Props) {
const state = useStopArrivals(props.locationId, props.showArrivals);
return <StopComponent {...props} {...state} />;
}
|