"use strict";

require("core-js/modules/es.object.define-property.js");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useInitialized = useInitialized;
var _react = require("react");
function useInitialized(check) {
  var initializedRef = (0, _react.useRef)(check);
  if (check) {
    initializedRef.current = true;
  }
  return !!initializedRef.current;
}