Первая версия дизайна

This commit is contained in:
 Илья Шалонин 2025-12-19 13:24:56 +05:00
parent aa36dea08e
commit ae1229d550
15 changed files with 1170 additions and 690 deletions

View file

@ -0,0 +1,20 @@
import { formatTime } from "../utils/time";
import type { TrackPoint } from "../types";
type TrackSummaryProps = {
lastPoint: TrackPoint | null;
pointsCount: number;
};
export const TrackSummary = ({ lastPoint, pointsCount }: TrackSummaryProps) => (
<div className="mini-info">
<div className="chip">
<span>Последняя фиксация</span>
<strong>{formatTime(lastPoint?.timestamp)}</strong>
</div>
<div className="chip">
<span>Точек трека</span>
<strong>{pointsCount}</strong>
</div>
</div>
);