import { formatTime } from "../utils/time"; import type { TrackPoint } from "../types"; type TrackSummaryProps = { lastPoint: TrackPoint | null; pointsCount: number; compact?: boolean; }; export const TrackSummary = ({ lastPoint, pointsCount, compact }: TrackSummaryProps) => (
Последняя фиксация {formatTime(lastPoint?.timestamp)}
Точек трека {pointsCount}
Статус ок
);