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

29 lines
758 B
React
Raw Normal View History

import React from 'react';
import { defineMessages, injectIntl } from 'react-intl';
import Button from '/imports/ui/components/button/component';
import { styles } from './styles';
const intlMessages = defineMessages({
closePresentationLabel: {
id: 'app.presentation.close',
description: 'Close presentation label',
},
});
const ClosePresentationComponent = ({ intl, toggleSwapLayout }) => (
<Button
role="button"
aria-labelledby="closeLabel"
aria-describedby="closeDesc"
color="primary"
icon="close"
size="sm"
onClick={toggleSwapLayout}
label={intl.formatMessage(intlMessages.closePresentationLabel)}
hideLabel
className={styles.button}
/>
);
export default injectIntl(ClosePresentationComponent);