"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useIsMounted = void 0;
const react_1 = require("react");
const use_mount_1 = require("./use-mount");
function useIsMounted() {
    const isMounted = (0, react_1.useRef)(false);
    (0, use_mount_1.useMount)(() => {
        isMounted.current = true;
        return () => {
            isMounted.current = false;
        };
    });
    return () => isMounted.current;
}
exports.useIsMounted = useIsMounted;
//# sourceMappingURL=use-is-mounted.js.map