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 | 17x 1x | import React from "react";
import { Link } from "react-router-dom";
import { AllAlertsCard as SharedAllAlertsCard, type AllAlertsCardProps } from "@overworld/ui/alerts";
import Loading from "../loading/Loading";
export default function AllAlertsCard(props: Omit<AllAlertsCardProps, "loadingContent" | "renderStopLink" | "renderRouteLink">) {
return <SharedAllAlertsCard {...props} loadingContent={<Loading />}
renderStopLink={id => <Link to={`/stop/${id}`}>{id}</Link>}
renderRouteLink={id => <Link to={`/lines/${id}`}>{id}</Link>}
/>;
}
|