UNPKG

361 BJavaScriptView Raw
1import React from 'react'; // TODO (apparently this is a bare "onSelect"?)
2
3var SelectableContext = /*#__PURE__*/React.createContext(null);
4export var makeEventKey = function makeEventKey(eventKey, href) {
5 if (href === void 0) {
6 href = null;
7 }
8
9 if (eventKey != null) return String(eventKey);
10 return href || null;
11};
12export default SelectableContext;
\No newline at end of file