RFileForm.tsx 535 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import React from "react";
import { baseImageUrl } from "../apis";

type Props = {
  question: any;
};

export const RFileForm = ({ question }: Props) => {
  return (
    <div className="m-5 flex justify-start items-center">
      {question.answers.map((answer: any) => (
        <>
          <img
            className="h-14"
            key={answer.url}
            alt="file"
            src={`${baseImageUrl}/${answer.url}`}
          />
          <div className="ml-3">{answer.name}</div>
        </>
      ))}
    </div>
  );
};