text: /**
   * Copyright 2017, IOOF Holdings Limited.
   * All rights reserved.
   *
   * This source code is licensed under the BSD-style license found in the
   * LICENSE file in the root directory of this source tree.
   */
  
  const hierarchyEnhancer = (createSubspace) => (store) => {
      const subspace = createSubspace(store)
      return {
      	...subspace,
      	rootStore: store.rootStore || store,
      	parentStore: store
      }
  }
  
  export default hierarchyEnhancer
  