bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/presentation/presentation-close-button/component.jsx

29 lines
787 B
React
Raw Normal View History

import React from 'react';
import { defineMessages, injectIntl } from 'react-intl';
import Styled from './styles';
const intlMessages = defineMessages({
closePresentationLabel: {
id: 'app.presentation.hide',
description: 'Hide presentation label',
},
});
2021-08-28 02:32:56 +08:00
const ClosePresentationComponent = ({
intl, toggleSwapLayout, layoutContextDispatch, isIphone,
}) => (
<Styled.CloseButton
isIphone={isIphone}
color="muted"
icon="minus"
size="sm"
data-test="hidePresentationButton"
2021-08-05 19:03:24 +08:00
onClick={() => toggleSwapLayout(layoutContextDispatch)}
label={intl.formatMessage(intlMessages.closePresentationLabel)}
aria-label={intl.formatMessage(intlMessages.closePresentationLabel)}
hideLabel
/>
);
export default injectIntl(ClosePresentationComponent);