text: import React from "react"
  import { Provider } from "react-redux"
  import { PersistGate } from "redux-persist/integration/react"
  import { createReduxStore, rootSaga, sagaMiddleware } from "./src/governor"
  
  // eslint-disable-next-line react/display-name,react/prop-types
  export default ({ element }) => {
    // Instantiating store in `wrapRootElement` handler ensures:
    //  - there is fresh store for each SSR page
    //  - it will be called only once in browser, when React mounts
    const { store, persistor } = createReduxStore()
    sagaMiddleware.run(rootSaga)
  
    return (
      <Provider store={store}>
        <PersistGate loading={null} persistor={persistor}>
          {element}
        </PersistGate>
      </Provider>
    )
  }
  