bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/video-provider/fullscreen-button/component.jsx

33 lines
922 B
React
Raw Normal View History

import React from 'react';
2019-01-15 21:13:55 +08:00
import { defineMessages, injectIntl } from 'react-intl';
import Button from '/imports/ui/components/button/component';
2019-01-15 21:13:55 +08:00
import cx from 'classnames';
import { styles } from './styles';
const intlMessages = defineMessages({
fullscreenButton: {
id: 'app.fullscreenButton.label',
description: 'Fullscreen label',
},
});
const FullscreenButtonComponent = ({ intl, handleFullscreen, dark }) => (
<div className={cx(styles.wrapper, dark ? styles.dark : styles.light)}>
2019-01-15 21:13:55 +08:00
<Button
role="button"
aria-labelledby="fullscreenButtonLabel"
aria-describedby="fullscreenButtonDesc"
color="default"
icon="fullscreen"
size="sm"
onClick={handleFullscreen}
label={intl.formatMessage(intlMessages.fullscreenButton)}
hideLabel
circle
className={styles.button}
/>
</div>
);
export default injectIntl(FullscreenButtonComponent);