@fluent-windows/hooks
Version:
Fluent-Windows React hooks.
21 lines (18 loc) • 388 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
/**
* Get the current `global this`
*
* Demo
* import { useGlobal } from '@fluent-windows/hooks'
*
* const global = useGlobal()
*/
function useGlobal() {
return typeof window !== 'undefined' ? window : global;
}
var _default = useGlobal;
exports["default"] = _default;