import { Checkbox, Form } from "antd";

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

  return (
    <Form.Item
      name={name}
      label={label}
      valuePropName="checked"
      rules={[
        {
          required: required
          //message: t("general.validation.required"),
        }
      ]}
    >
      <Checkbox disabled={readOnly} />
    </Form.Item>
  );
}
