19 lines
525 B
JavaScript
19 lines
525 B
JavaScript
"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 = _react.default.createContext();
|
|
|
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
if (eventKey != null) return String(eventKey);
|
|
return href || null;
|
|
};
|
|
|
|
exports.makeEventKey = makeEventKey;
|
|
var _default = SelectableContext;
|
|
exports.default = _default; |