import * as React from "react"; import {Translatable, VariadicTranslatable} from "tc-shared/ui/react-elements/i18n"; import {useEffect, useMemo, useState} from "react"; import {ConnectionHandler} from "tc-shared/ConnectionHandler"; import {server_connections} from "tc-shared/ConnectionManager"; import {StatusController} from "tc-shared/ui/frames/footer/StatusController"; import {ConnectionStatusEvents} from "tc-shared/ui/frames/footer/StatusDefinitions"; import {Registry} from "tc-shared/events"; import {StatusDetailRenderer, StatusEvents, StatusTextRenderer} from "tc-shared/ui/frames/footer/StatusRenderer"; const cssStyle = require("./Renderer.scss"); const VersionsRenderer = () => ( Version: {__build.version}
github.com
); /* FIXME: Outsource this! */ const RtcStatus = () => { const statusController = useMemo(() => new StatusController(new Registry()), []); statusController.setConnectionHandler(server_connections.getActiveConnectionHandler()); server_connections.events().reactUse("notify_active_handler_changed", event => { statusController.setConnectionHandler(event.newHandler); }, undefined, []); return ( ) }; export const FooterRenderer = () => { return (
); };