import type { TestRunHookFinished, TestStepFinished } from '@cucumber/messages' import type { FC } from 'react' import { useQueries } from '../../hooks/index.js' import { Attachment } from '../gherkin/index.js' import styles from './TestStepAttachments.module.scss' interface Props { testStepOrHookFinished: TestStepFinished | TestRunHookFinished } export const TestStepAttachments: FC = ({ testStepOrHookFinished }) => { const { cucumberQuery } = useQueries() const attachments = cucumberQuery.findAttachmentsBy(testStepOrHookFinished) return (
    {attachments.map((attachment, index) => { return (
  1. ) })}
) }