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

12 lines
361 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
import React from 'react'; // TODO (apparently this is a bare "onSelect"?)
var SelectableContext = /*#__PURE__*/React.createContext(null);
export var makeEventKey = function makeEventKey(eventKey, href) {
if (href === void 0) {
href = null;
}
if (eventKey != null) return String(eventKey);
return href || null;
};
export default SelectableContext;