import type { FunctionalComponent } from "preact"; import { TestResultHistoryItem } from "@/components/TestResult/TestResultHistory/TestResultHistoryItem"; import { useI18n } from "@/stores"; import { type ClassicTestResult } from "../../../../types"; import * as styles from "./styles.scss"; export type TestResultHistoryViewProps = { testResult?: ClassicTestResult; }; const TestResultHistoryView: FunctionalComponent = ({ testResult }) => { const { history } = testResult ?? {}; const { t } = useI18n("empty"); return (
{history.length ? ( history?.map((item, key) => ) ) : (
{t("no-history-results")}
)}
); }; export default TestResultHistoryView;