All files / applications/go-by-transit/src/view/nearbyStops/containers StopContainer.tsx

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2

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} />;
}