import clsx from "clsx"; import { useEffect, useState } from "react"; import { EngineButtons } from "./EngineButtons"; import { SurveyElement } from "./engineTypes"; interface TextareaProps { element: SurveyElement; register: any; onSubmit: () => void; allowSkip: boolean; skipAction: () => void; autoSubmit: boolean; loading: boolean; } export default function Textarea({ element, register, onSubmit, allowSkip, skipAction, autoSubmit, loading, }: TextareaProps) { return (