import * as React from "react"; import * as Constants from "~/common/constants"; import * as OldSVG from "~/components/system/svg"; import { TooltipWrapper, dispatchCustomEvent, PopoverNavigation } from "~/components/system"; import { css } from "@emotion/react"; import Dismissible from "~/components/core/Dismissible"; import CircleButtonLight from "~/components/core/CircleButtonLight"; const STYLES_ANCHOR = css` position: relative; `; const APPLICATION_CONTROL_MENU_ID = "application-control-menu"; export default class ApplicationControlMenu extends React.Component { state = { visible: false }; _handleClick = (e) => { this.setState({ visible: !this.state.visible }); dispatchCustomEvent({ name: "show-tooltip", detail: { id: APPLICATION_CONTROL_MENU_ID, }, }); }; _handleHide = () => { this.setState({ visible: false }); return dispatchCustomEvent({ name: "hide-tooltip", detail: { id: APPLICATION_CONTROL_MENU_ID, }, }); }; _handleNavigateTo = (data) => { this._handleHide(); return this.props.onNavigateTo(data); }; _handleAction = (data) => { this._handleHide(); return this.props.onAction(data); }; _handleSignOut = (data) => { this._handleHide(); return this.props.onSignOut(data); }; render() { return ( }> ); } }