text: import React from 'react';
  import ReactDOM from 'react-dom';
  import { createBrowserHistory } from 'history';
  import { Router, Route, Switch, Redirect } from 'react-router-dom';
  
  // core components
  import Admin from 'layouts/Admin.jsx';
  import RTL from 'layouts/RTL.jsx';
  import { Provider } from 'react-redux';
  import configureReduxStore from './store';
  
  import 'assets/css/material-dashboard-react.css?v=1.6.0';
  
  const hist = createBrowserHistory();
  
  ReactDOM.render(
    <Provider store={configureReduxStore()}>
      <Router history={hist}>
        <Switch>
          <Route path="/admin" component={Admin} />
          <Route path="/rtl" component={RTL} />
          <Redirect from="/" to="/admin/dashboard" />
        </Switch>
      </Router>
    </Provider>,
    document.getElementById('root'),
  );
  