15eb6c9980
Implementing subtitles button for viewers fix: activate/deactivate closed captions changing button layout changing button layout Fix a few things
26 lines
526 B
JavaScript
26 lines
526 B
JavaScript
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;
|