1import './globals';
2import React from 'react';
3import ReactDOM from 'react-dom';
4import App from './App';
5import './themes/app.scss';
6import './themes/light.scss';
7import './themes/dark.scss';
8import './fonts/codicon.ttf';
9import { isPresent } from './utils';
10
11// Declared/defined in public/index.html, value replaced by Prometheus when serving bundle.
12declare const GLOBAL_CONSOLES_LINK: string;
13
14let consolesLink: string | null = GLOBAL_CONSOLES_LINK;
15
16if (
17  GLOBAL_CONSOLES_LINK === 'CONSOLES_LINK_PLACEHOLDER' ||
18  GLOBAL_CONSOLES_LINK === '' ||
19  !isPresent(GLOBAL_CONSOLES_LINK)
20) {
21  consolesLink = null;
22}
23
24ReactDOM.render(<App consolesLink={consolesLink} />, document.getElementById('root'));
25