"use strict";

exports.__esModule = true;
exports.default = void 0;

var _react = require("react");

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
var useUnmountedRef = function useUnmountedRef() {
  var unmountedRef = (0, _react.useRef)(false);
  (0, _react.useEffect)(function () {
    unmountedRef.current = false;
    return function () {
      unmountedRef.current = true;
    };
  }, []);
  return unmountedRef;
};

var _default = useUnmountedRef;
exports.default = _default;