import { memo } from "preact/compat"; import StationServices from "../StationServices"; import useRouteStop from "../utils/hooks/useRouteStop"; import type { JSX, PreactDOMAttributes } from "preact"; export type RouteStopNameProps = JSX.HTMLAttributes & PreactDOMAttributes; function RouteStopServices(props: RouteStopNameProps) { const { station } = useRouteStop(); if (!station) { return null; } return ( ); } export default memo(RouteStopServices);