import { Form, Rate } from "antd";
import React from "react";

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"),
        }
      ]}
    >
      <Rate disabled={readOnly} allowHalf />
    </Form.Item>
  );
}
