Files
jitsi-meet/react/features/recent-list/components/ShowDialInInfoButton.native.js
Robert Pintilii 0b65acb528 ref: Remove some index files (#13151)
Fix imports
2023-04-03 13:49:19 +03:00

53 lines
1.3 KiB
JavaScript

// @flow
import { connect } from 'react-redux';
import { translate } from '../../base/i18n/functions';
import { IconInfoCircle } from '../../base/icons/svg';
import AbstractButton, { IProps as AbstractButtonProps } from '../../base/toolbox/components/AbstractButton';
import { navigateRoot } from '../../mobile/navigation/rootNavigationContainerRef';
import { screen } from '../../mobile/navigation/routes';
export type Props = AbstractButtonProps & {
/**
* The redux {@code dispatch} function.
*/
dispatch: Function,
/**
* The ID of the entry to be deleted.
*/
itemId: Object,
/**
* The function to be used to translate i18n labels.
*/
t: Function
};
/**
* A recent list menu button which opens the dial-in info dialog.
*/
class ShowDialInInfoButton extends AbstractButton<Props, *> {
accessibilityLabel = 'welcomepage.info';
icon = IconInfoCircle;
label = 'welcomepage.info';
/**
* Handles clicking / pressing the button.
*
* @private
* @returns {void}
*/
_handleClick() {
const { itemId } = this.props;
navigateRoot(screen.dialInSummary, {
summaryUrl: itemId.url
});
}
}
export default translate(connect()(ShowDialInInfoButton));