import { Textarea } from '../../reusable/Textarea';

export function TextAreaField({
  label,
  required,
  value,
  onChange,
}: {
  label: string;
  required?: boolean;
  value: string;
  onChange: (val: string) => void;
}) {
  return (
    <Textarea
      label={label}
      required={required}
      value={value ?? ''}
      onChange={(e) => onChange(e.target.value)}
    />
  );
}
