/** * @file History entries list */ import * as React from "react"; import type { HistoryEntry } from "../../../contexts/history/context"; import { useI18n } from "../../../i18n/context"; import styles from "./HistoryList.module.css"; type HistoryListProps = { entries: HistoryEntry[]; currentIndex: number; }; /** * Section for displaying history entries list */ export function HistoryList({ entries, currentIndex }: HistoryListProps): React.ReactElement { const { t } = useI18n(); const formatTime = (ts: number) => new Date(ts).toLocaleTimeString(); if (entries.length === 0) { return (