import { __read } from "tslib";
import { useState, useEffect } from "react";
export function useStateProps(arg) {
    var _a = __read(useState(arg), 2), value = _a[0], setValue = _a[1];
    useEffect(function () {
        setValue(arg);
    }, [arg]);
    return [value, setValue];
}
