bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/presentation/download-presentation-button/component.jsx
MrKeksi 9d10478320 increase download button size
increase download button size
fixes #7684
2021-04-21 19:36:40 +02:00

46 lines
1.2 KiB
JavaScript
Executable File

import React from 'react';
import { defineMessages, injectIntl } from 'react-intl';
import Button from '/imports/ui/components/button/component';
import cx from 'classnames';
import PropTypes from 'prop-types';
import { styles } from './styles';
const intlMessages = defineMessages({
downloadPresentationButton: {
id: 'app.downloadPresentationButton.label',
description: 'Download presentation label',
},
});
const propTypes = {
intl: PropTypes.object.isRequired,
handleDownloadPresentation: PropTypes.func.isRequired,
dark: PropTypes.bool,
};
const defaultProps = {
dark: false,
};
const DownloadPresentationButton = ({
intl, handleDownloadPresentation, dark,
}) => (
<div className={cx(styles.wrapper, dark ? styles.dark : styles.light)}>
<Button
color="default"
icon="template_download"
size="md"
onClick={handleDownloadPresentation}
label={intl.formatMessage(intlMessages.downloadPresentationButton)}
hideLabel
circle
className={styles.button}
/>
</div>
);
DownloadPresentationButton.propTypes = propTypes;
DownloadPresentationButton.defaultProps = defaultProps;
export default injectIntl(DownloadPresentationButton);