import { useEffect as o } from "react";
import { useToggle as f } from "../../toggle/dist/module.es.js";
function d(t, r, e) {
  let { inputProps: c } = f(t, r, e), { isSelected: i } = r, { isIndeterminate: n } = t;
  return o(() => {
    e.current && (e.current.indeterminate = n);
  }), {
    inputProps: {
      ...c,
      checked: i
    }
  };
}
export {
  d as useCheckbox
};
//# sourceMappingURL=module.es.js.map
