import Bootstrap from "./Bootstrap";
import ErrorPage from "./ErrorPage";
import FrozenHead from "react-frozenhead";
import React from "react";
import SupportStore from "../stores/SupportStore";
import { RouteHandler } from "react-router";
import ga from "react-google-analytics";
if (process.env.GA_ACCESS_TOKEN) {
ga("create", process.env.GA_ACCESS_TOKEN, "auto");
ga("send", "pageview");
}
export default class App extends React.Component {
constructor() {
super();
this.state = SupportStore.getState();
this._onChange = () => {
this.setState(SupportStore.getState());
};
}
componentDidMount() {
SupportStore.listen(this._onChange);
}
componentWillUnmount() {
SupportStore.unlisten(this._onChange);
}
render() {
return (