import { useState } from 'react';
export function useSetter(setter, initialValue) {
    const [state, setValue] = useState(setter(initialValue));
    return [
        state,
        (value) => {
            setValue(setter(state, value));
        },
    ];
}
//# sourceMappingURL=setter.js.map