"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "usePreviousValue", {
    enumerable: true,
    get: function() {
        return usePreviousValue;
    }
});
const _react = require("react");
const usePreviousValue = (value)=>{
    const ref = (0, _react.useRef)();
    (0, _react.useEffect)(()=>{
        ref.current = value;
    });
    return ref.current;
};
