GoScrobble/web/node_modules/react-bootstrap/cjs/SelectableContext.js

23 lines
589 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = exports.makeEventKey = void 0;
var _react = _interopRequireDefault(require("react"));
var SelectableContext = /*#__PURE__*/_react.default.createContext(null);
var makeEventKey = function makeEventKey(eventKey, href) {
if (href === void 0) {
href = null;
}
if (eventKey != null) return String(eventKey);
return href || null;
};
exports.makeEventKey = makeEventKey;
var _default = SelectableContext;
exports.default = _default;