/**
 * Copyright IBM Corp. 2020, 2026
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

const require_runtime = require('../../../_virtual/_rolldown/runtime.js');
const require_uuidv4 = require('./uuidv4.js');
let react = require("react");
react = require_runtime.__toESM(react);

//#region src/global/js/utils/useId.jsx
const _React = { ...react.default };
/**
* Uses React 18's built-in `useId()` when available, or falls back to
* using uuidv4 otherwise
*/
const useId = _React.useId ? _React.useId : require_uuidv4.default;

//#endregion
exports.useId = useId;