"use strict";

Liferay.Loader.define("@frontend-taglib-clay$clayui/shared@3.89.0/lib/useId", ['module', 'exports', 'require', 'frontend-js-react-web$react'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.useId = useId;

    var _react = require("frontend-js-react-web$react");

    /**
     * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com>
     * SPDX-License-Identifier: BSD-3-Clause
     */
    var counter = 0;

    function useId() {
      return (0, _react.useMemo)(function () {
        counter++;
        return "clay-id-".concat(counter);
      }, []);
    }
  }
});
//# sourceMappingURL=useId.js.map