import { Form, Input } from "antd";

export default function JobIntakeFormCheckboxComponent({ formItem, readOnly }) {
  const { name, label, required, rows } = formItem;

  return (
    <Form.Item
      name={name}
      label={label}
      rules={[
        {
          required: required
          //message: t("general.validation.required"),
        }
      ]}
    >
      <Input.TextArea disabled={readOnly} rows={rows || 4} />
    </Form.Item>
  );
}
