"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useCombinedState = void 0;
const react_1 = require("react");
const useCombinedState = (value, defaultValue) => {
    const [_value, _setValue] = (0, react_1.useState)(defaultValue);
    return [value === undefined ? _value : value, _setValue];
};
exports.useCombinedState = useCombinedState;
//# sourceMappingURL=CombineState.js.map