// @flow import React, { useCallback } from 'react'; import { translate } from '../../../base/i18n'; import { IconInfoCircle } from '../../../base/icons'; import { connect } from '../../../base/redux'; import ContextMenuItem from '../../../base/ui/components/web/ContextMenuItem'; import { renderConnectionStatus } from '../../actions.web'; type Props = { /** * The Redux dispatch function. */ dispatch: Function, /** * The ID of the participant for which to show connection stats. */ participantId: string, /** * The function to be used to translate i18n labels. */ t: Function }; const ConnectionStatusButton = ({ dispatch, t }: Props) => { const onClick = useCallback(e => { e.stopPropagation(); dispatch(renderConnectionStatus(true)); }, [ dispatch ]); return ( ); }; export default translate(connect()(ConnectionStatusButton));