Первая версия дизайна
This commit is contained in:
parent
aa36dea08e
commit
ae1229d550
15 changed files with 1170 additions and 690 deletions
20
frontend/src/components/TrackSummary.tsx
Normal file
20
frontend/src/components/TrackSummary.tsx
Normal 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>
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue