"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "useLockScrollTaro", {
    enumerable: true,
    get: function() {
        return useLockScrollTaro;
    }
});
var _react = require("react");
var _taro = require("@tarojs/taro");
var _uselockscroll = require("./use-lock-scroll");
var useLockScrollTaro = function useLockScrollTaro(shouldLock) {
    var refObject = (0, _react.useRef)(null);
    if ((0, _taro.getEnv)() === 'WEB') {
        // eslint-disable-next-line react-hooks/rules-of-hooks
        (0, _uselockscroll.useLockScroll)(refObject, shouldLock);
    }
    return refObject;
};
