import type { AttachmentTestStepResult } from "@allurereport/core-api"; import type { FunctionalComponent } from "preact"; import type { ClassicTestResult } from "types"; import { TestResultAttachment } from "@/components/TestResult/TestResultSteps/testResultAttachment"; import { useI18n } from "@/stores"; import * as styles from "./styles.scss"; export type TestResultAttachmentViewProps = { testResult?: ClassicTestResult; }; export const TestResultAttachmentView: FunctionalComponent = ({ testResult }) => { const { attachments } = testResult ?? {}; const { t } = useI18n("empty"); return (
{attachments.length ? ( attachments?.map((attach, key) => ( )) ) : (
{t("no-attachments-results")}
)}
); };