import { Form, Input } from "antd";

export default function JobIntakeFormCheckboxComponent({ formItem, readOnly }) {
  const { name, label, required } = formItem;
  return (
    <Form.Item
      name={name}
      label={label}
      rules={[
        {
          required: required
          //message: t("general.validation.required"),
        }
      ]}
    >
      <Input disabled={readOnly} />
    </Form.Item>
  );
}
