import { jsx } from "react/jsx-runtime";
import { Checkbox } from "@contember/ui";
import { useFieldControl } from "./useFieldControl.js";
import { SimpleRelativeSingleField } from "../auxiliary/SimpleRelativeSingleField/SimpleRelativeSingleField.js";
const parse = (value) => value ?? null;
const format = (value) => value ?? null;
const CheckboxField = SimpleRelativeSingleField(
  (fieldMetadata, props) => {
    const inputProps = useFieldControl({
      ...props,
      fieldMetadata,
      parse,
      format
    });
    return /* @__PURE__ */ jsx(Checkbox, { ...inputProps });
  },
  "CheckboxField",
  { labelPosition: "labelInlineRight" }
);
export {
  CheckboxField
};
//# sourceMappingURL=CheckboxField.js.map
