import '../../../../../node_modules/preact/compat/dist/compat.module.mjs';
import { useCallback as T } from '../../../../../node_modules/preact/hooks/dist/hooks.module.mjs';

const useStateSliceSetter = (setState, key)=>{
    return T((value)=>{
        setState((state)=>{
            return {
                ...state,
                [key]: value
            };
        });
    }, [
        key,
        setState
    ]);
};

export { useStateSliceSetter };
//# sourceMappingURL=useStateSliceSetter.mjs.map
