import { useRef } from "react";
import { getEnv } from "@tarojs/taro";
import { useLockScroll } from "./use-lock-scroll";
export var useLockScrollTaro = function(shouldLock) {
    var refObject = useRef(null);
    if (getEnv() === 'WEB') {
        // eslint-disable-next-line react-hooks/rules-of-hooks
        useLockScroll(refObject, shouldLock);
    }
    return refObject;
};
