import React, { Fragment } from "react"; import { baseImageUrl } from "../apis"; type Props = { question: any; answers: any; }; export const RFile = ({ question, answers }: Props) => { console.log("question", question); return (
{answers.map((answer: any, index: number) => ( file
{answer[0].name}
))}
); };