import React, { ChangeEventHandler } from 'react'; import Html from '../helper/Html'; import { Textarea as StyledTextarea } from '../../primitives/Input'; import ErrorIcon from '../graphics/ErrorIcon'; import Information from '../../primitives/Information'; import { RenderWithData } from '../../index'; export default function Textarea(props: RenderWithData<"Textarea">) { const handleChange: ChangeEventHandler = (e) => { const { property, setData } = props; const value = e.target.value; setData(property, value); }; const { currentValue, information, heading, placeholder, property, autocomplete } = props; return (
{information && ( )}
); }