text: import React from 'react';
  import ReactDOM from 'react-dom';
  import * as Sentry from '@sentry/browser';
  import * as SentryIntegrations from '@sentry/integrations';
  import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
  import * as serviceWorker from './serviceWorker';
  
  import './index.css';
  import App from './App';
  import { version } from '../package.json';
  import theme from '@iobroker/adapter-react/Theme';
  
  window.adapterName = 'text2command';
  let themeName = (window.localStorage && window.localStorage.getItem('App.themeName')) || 'light';
  
  console.log('iobroker.' + window.adapterName + '@' + version);
  
  function build() {
      return ReactDOM.render(
          <MuiThemeProvider theme={theme(themeName)}>
              <App
                  onThemeChange={_theme => {
                      themeName = _theme;
                      build();
                  }}
              />
          </MuiThemeProvider>,
          document.getElementById('root')
      );
  }
  
  console.log(theme(themeName));
  
  // if not local development
  if (window.location.host !== 'localhost:3000' && false) {
      Sentry.init({
          dsn: 'https://needToGetTheNumber@sentry.iobroker.net/86',
          release: 'iobroker.' + window.adapterName + '@' + version,
          integrations: [new SentryIntegrations.Dedupe()],
      });
  }
  
  build();
  
  // If you want your app to work offline and load faster, you can change
  // unregister() to register() below. Note this comes with some pitfalls.
  // Learn more about service workers: http://bit.ly/CRA-PWA
  serviceWorker.unregister();
  