2021-12-20 17:21:19 +00:00
|
|
|
import clsx from 'clsx';
|
|
|
|
import { TextareaHTMLAttributes } from 'react';
|
2021-11-17 18:32:57 +00:00
|
|
|
|
2024-04-11 00:11:38 +00:00
|
|
|
import { AutomationTestingProps } from '@/types';
|
|
|
|
|
2021-12-20 17:21:19 +00:00
|
|
|
export function TextArea({
|
2021-11-17 18:32:57 +00:00
|
|
|
className,
|
2021-12-20 17:21:19 +00:00
|
|
|
...props
|
2024-04-11 00:11:38 +00:00
|
|
|
}: TextareaHTMLAttributes<HTMLTextAreaElement> & AutomationTestingProps) {
|
2021-11-17 18:32:57 +00:00
|
|
|
return (
|
2021-12-20 17:21:19 +00:00
|
|
|
<textarea
|
|
|
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
|
|
{...props}
|
|
|
|
className={clsx('form-control', className)}
|
2021-11-17 18:32:57 +00:00
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|