bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/external-video-player/subtitles/component.jsx

26 lines
526 B
React
Raw Normal View History

import React, { Component } from 'react';
import Styled from './styles';
class Subtitles extends Component {
constructor(props) {
super(props);
}
render() {
const { toggleSubtitle, label } = this.props;
return (
<Styled.SubtitlesWrapper>
<Styled.SubtitlesButton
color="primary"
icon="closed_caption"
onClick={() => toggleSubtitle()}
label={label}
hideLabel
/>
</Styled.SubtitlesWrapper>
);
}
}
export default Subtitles;