text: "use strict";
  
  exports.__esModule = true;
  exports["default"] = void 0;
  
  var _react = require("react");
  
  var useToggle = function useToggle(initialValue) {
    var _useState = (0, _react.useState)(function () {
      return !!initialValue;
    }),
        is = _useState[0],
        setIs = _useState[1],
        toggle = (0, _react.useCallback)(function () {
      return setIs(function (is) {
        return !is;
      });
    }, []);
  
    return [is, toggle];
  };
  
  var _default = useToggle;
  exports["default"] = _default;
  //# sourceMappingURL=useToggle.js.map