"use client"; import { useMemo } from "react"; import { type Stop, getStopStatus } from "./types"; type Props = { stops: Stop[]; }; // Minimal list view used inside the StopsDashboard tab nav. // It is a calmer, read-only list; for bulk publish/edit use the // dedicated /admin/stops page. export default function StopsList({ stops }: Props) { const sorted = useMemo(() => { return [...stops].sort((a, b) => (a.date || "").localeCompare(b.date || "")); }, [stops]); if (sorted.length === 0) { return (

No stops yet

Switch to a different tab to add stops.

); } return ( ); }