"use strict";
/*
Use this hook if you want to render with react
ONLY on the client.

This is much better than using process.browser,
since it will NOT render the thing on the server,
will render it on the client, and the react SSR
hydration will not be thrown off like it is with
process.browser.
*/
var __read = (this && this.__read) || function (o, n) {
    var m = typeof Symbol === "function" && o[Symbol.iterator];
    if (!m) return o;
    var i = m.call(o), r, ar = [], e;
    try {
        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
    }
    catch (error) { e = { error: error }; }
    finally {
        try {
            if (r && !r.done && (m = i["return"])) m.call(i);
        }
        finally { if (e) throw e.error; }
    }
    return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = require("react");
function useIsClient() {
    var _a = __read((0, react_1.useState)(false), 2), loaded = _a[0], setLoaded = _a[1];
    (0, react_1.useEffect)(function () { return setLoaded(true); }, []);
    return loaded;
}
exports.default = useIsClient;
//# sourceMappingURL=is-browser.js.map