@wener/console
Version:
Base console UI toolkit
15 lines (14 loc) • 485 B
JavaScript
export function useIsDev() {
return process.env.NODE_ENV === 'development';
}
export function useIsProd() {
return !useIsDev();
}
export function useIsClient() {
return typeof window !== 'undefined' && typeof location !== 'undefined';
}
var _isNextJS;
export function useIsNextJS() {
var _globalThis_next;
return _isNextJS || (_isNextJS = Boolean((_globalThis_next = globalThis.next) === null || _globalThis_next === void 0 ? void 0 : _globalThis_next.version));
}