"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get getRefValue () {
        return getRefValue;
    },
    get useRefState () {
        return useRefState;
    }
});
var _sliced_to_array = require("@swc/helpers/_/_sliced_to_array");
var _react = require("react");
var getRefValue = function getRefValue(ref) {
    return ref.current;
};
var useRefState = function useRefState(param) {
    var ref = (0, _react.useRef)(param);
    var _useState = (0, _sliced_to_array._)((0, _react.useState)(param), 2), setState = _useState[1];
    var updateState = function updateState(p) {
        ref.current = p;
        setState(p);
    };
    return [
        ref,
        updateState
    ];
};
