mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
12 lines
361 B
JavaScript
12 lines
361 B
JavaScript
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; |