import { ExtensionStatusPopover } from '@sourcegraph/extensions-client-common/lib/app/ExtensionStatus';
import { LoadingSpinner } from '@sourcegraph/react-loading-spinner';
import MenuDownIcon from 'mdi-react/MenuDownIcon';
import * as React from 'react';
import { Link } from 'react-router-dom';
const SHOW_DEBUG = localStorage.getItem('debug') !== null;
const ExtensionLink = props => React.createElement(Link, { to: `extensions/${props.id}` }, props.id);
/**
 * A global debug toolbar shown in the bottom right of the window.
 */
export const GlobalDebug = props => SHOW_DEBUG ? (React.createElement("div", { className: "global-debug navbar navbar-expand" },
    React.createElement("ul", { className: "navbar-nav align-items-center" },
        React.createElement("li", { className: "nav-item" },
            React.createElement(ExtensionStatusPopover, { link: ExtensionLink, location: props.location, loaderIcon: LoadingSpinner, caretIcon: MenuDownIcon, extensionsController: props.extensionsController }))))) : null;
//# sourceMappingURL=GlobalDebug.js.map