21 lines
582 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React from "react";
import { IRouteCard } from "types/user";
import { formatTimeLength } from "utils";
const RouteCard: React.FC<IRouteCard> = ({ route }) => {
return (
<div>
<h2>{route.name}</h2>
<p>
Данный квесты вы сможете пройти за {formatTimeLength(route.averageTime)}
</p>
<p>Длинна маршрута: {route.length} м</p>
<p>Примерное время прохождения: {route.averageTime}</p>
<p>Точка старта:</p>
</div>
);
};
export default RouteCard;