export function updateBlockState(block, state) {
    let permutation = block.permutation;
    for (const [key, value] of Object.entries(state)) {
        permutation = permutation.withState(key, value);
    }
    block.setPermutation(permutation);
}