30 lines
795 B
JavaScript
Executable File
30 lines
795 B
JavaScript
Executable File
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.hide',
|
|
description: 'Hide presentation label',
|
|
},
|
|
});
|
|
|
|
const ClosePresentationComponent = ({ intl, toggleSwapLayout }) => (
|
|
<Button
|
|
role="button"
|
|
aria-labelledby="closeLabel"
|
|
aria-describedby="closeDesc"
|
|
color="primary"
|
|
icon="minus"
|
|
size="sm"
|
|
data-test="hidePresentationButton"
|
|
onClick={toggleSwapLayout}
|
|
label={intl.formatMessage(intlMessages.closePresentationLabel)}
|
|
hideLabel
|
|
className={styles.button}
|
|
/>
|
|
);
|
|
|
|
export default injectIntl(ClosePresentationComponent);
|