"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useUniqueId = void 0;
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var uniqueId = 0;
var useUniqueId = exports.useUniqueId = function useUniqueId() {
  var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  var id = _react.default.useRef("".concat(prefix, "-").concat(uniqueId++));
  _react.default.useEffect(function () {
    uniqueId++;
  }, []);
  return id.current;
};