import React, { useState } from "react"; import { EssayType } from "../types"; import { useQuestion } from "./question.context"; import { Edit } from "./Edit"; type Props = { element: EssayType; }; export const QEssay = ({ element }: Props) => { const { questionListChange } = useQuestion(); return (