'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var React = require('react');
var ReactDOM = require('react-dom');
var useUniqId = require('../hooks/useUniqId.js');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var React__default = /*#__PURE__*/_interopDefault(React);
var ReactDOM__default = /*#__PURE__*/_interopDefault(ReactDOM);

// eslint-disable-next-line @typescript-eslint/no-explicit-any
var _ref = React__default.default,
  useId = _ref.useId;
var IS_REACT_18 = ReactDOM__default.default.version.split('.')[0] === '18';
var IS_REACT_BELOW_18 = /*#__PURE__*/Number(ReactDOM__default.default.version.split('.')[0]) < 18;
var safeUseId = IS_REACT_BELOW_18 ? useUniqId.useUniqId : useId;

exports.IS_REACT_18 = IS_REACT_18;
exports.IS_REACT_BELOW_18 = IS_REACT_BELOW_18;
exports.safeUseId = safeUseId;
