export function updateState( state: Record, update: Record, ): void { Object.keys(state).forEach((key) => { state[key] = update[key] }) }