import { clsx } from 'clsx';
import React from 'react';
import { FORM_CONTROL_BASE_CLASSES } from '@/components/ui/formClasses.ts';

const Textarea = React.forwardRef<
  HTMLTextAreaElement,
  React.TextareaHTMLAttributes<HTMLTextAreaElement>
>(({ className, ...props }, ref) => {
  return (
    <textarea
      ref={ref}
      className={clsx('flex min-h-20', FORM_CONTROL_BASE_CLASSES, className)}
      {...props}
    />
  );
});

Textarea.displayName = 'Textarea';

export default Textarea;
