import { Form, Slider } from "antd";

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

  return (
    <Form.Item
      name={name}
      label={label}
      rules={[
        {
          required: required
          //message: t("general.validation.required"),
        }
      ]}
    >
      <Slider disabled={readOnly} min={min || 0} max={max || 10} />
    </Form.Item>
  );
}
