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