import AutoExpandingTextArea from "@/components/Low/AutoExpandingTextarea"; import { Card, CardContent } from "@/components/ui/card"; import { useState } from "react"; import { MdEdit, MdEditOff } from "react-icons/md"; interface Props { value: string; onChange: (text: string) => void; } const PromptEdit: React.FC = ({ value, onChange }) => { const [editing, setEditing] = useState(false); return ( <>
{editing ? ( onChange(text)} onBlur={()=> setEditing(false)} /> ) : (

Question/Instructions displayed to the student:

{value}

)}
); } export default PromptEdit;