import React from 'react';
var uniqueId = 0;
export var useUniqueId = function useUniqueId() {
  var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  var id = React.useRef("".concat(prefix, "-").concat(uniqueId++));
  React.useEffect(function () {
    uniqueId++;
  }, []);
  return id.current;
};