-
Notifications
You must be signed in to change notification settings - Fork 165
/
Copy pathExportOptions.js
65 lines (58 loc) · 1.95 KB
/
ExportOptions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import React from 'react';
import PropTypes from 'prop-types';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faWindowClose } from '@fortawesome/free-solid-svg-icons';
import style from './index.module.css';
class ExportOptions extends React.Component {
render() {
const btns = this.props.exportOptionsList.map((opt, index) => {
return (<><button
type="button"
key={opt.label+index}
title={ opt.label }
className={ style.playerButton }
key={ opt.value }
onClick={ this.props.handleExportOptionsChange }
value={ opt.value }>
{opt.label}
</button>
<br/>
</>);
});
return (
<div className={ style.settings }>
<h2 className={ style.header }>Export Options</h2>
<div className={ style.closeButton }
onClick={ this.props.handleExportToggle }
>
<FontAwesomeIcon icon={ faWindowClose } />
</div>
<div className={ style.controlsContainer }>
{btns}
</div>
</div>
);
}
}
ExportOptions.propTypes = {
handleExportToggle: PropTypes.func
// showTimecodes: PropTypes.bool,
// showSpeakers: PropTypes.bool,
// timecodeOffset: PropTypes.number,
// handleShowTimecodes: PropTypes.func,
// handleShowSpeakers: PropTypes.func,
// handleSetTimecodeOffset: PropTypes.func,
// handleSettingsToggle: PropTypes.func,
// handlePauseWhileTyping: PropTypes.func,
// handleIsScrollIntoViewChange: PropTypes.func,
// handleRollBackValueInSeconds: PropTypes.func,
// defaultValueScrollSync: PropTypes.bool,
// defaultValuePauseWhileTyping: PropTypes.bool,
// defaultRollBackValueInSeconds: PropTypes.number,
// previewIsDisplayed: PropTypes.bool,
// handlePreviewIsDisplayed: PropTypes.func,
// // previewViewWidth: PropTypes.string,
// handleChangePreviewViewWidth: PropTypes.func,
// handleAnalyticsEvents: PropTypes.func
};
export default ExportOptions;