import * as React from "react";
import { render } from "react-dom";
import { WidgetSimulator } from "./simulator";

import "es6-shim";
const padstart = require("string.prototype.padstart");
padstart.shim();
import "whatwg-fetch";
import "url-polyfill";

import "./assets/index.less";
import { setLogLevel } from "@talentsoft-opensource/integration-com-layer";

(window as any).React = React;

setLogLevel("trace");

document.addEventListener("DOMContentLoaded", function(){
    render(<WidgetSimulator />, document.getElementById("root"));
});
