2017-10-06 20:50:01 +08:00
|
|
|
import React from 'react';
|
2018-01-08 14:17:18 +08:00
|
|
|
import { styles } from './styles.scss';
|
2017-11-24 01:20:27 +08:00
|
|
|
import EmojiSelect from './emoji-select/component';
|
2016-09-27 05:55:33 +08:00
|
|
|
import ActionsDropdown from './actions-dropdown/component';
|
2017-09-20 01:47:57 +08:00
|
|
|
import AudioControlsContainer from '../audio/audio-controls/container';
|
2017-09-20 11:12:10 +08:00
|
|
|
import JoinVideoOptionsContainer from '../video-dock/video-menu/container';
|
2016-12-15 03:55:35 +08:00
|
|
|
|
2017-10-06 20:50:01 +08:00
|
|
|
const ActionsBar = ({
|
|
|
|
isUserPresenter,
|
2017-11-11 11:41:37 +08:00
|
|
|
handleExitVideo,
|
|
|
|
handleJoinVideo,
|
|
|
|
handleShareScreen,
|
|
|
|
handleUnshareScreen,
|
|
|
|
isVideoBroadcasting,
|
2017-11-24 01:20:27 +08:00
|
|
|
emojiList,
|
|
|
|
emojiSelected,
|
|
|
|
handleEmojiChange,
|
2017-10-06 20:50:01 +08:00
|
|
|
}) => (
|
|
|
|
<div className={styles.actionsbar}>
|
|
|
|
<div className={styles.left}>
|
2017-11-11 11:41:37 +08:00
|
|
|
<ActionsDropdown {...{ isUserPresenter, handleShareScreen, handleUnshareScreen, isVideoBroadcasting}} />
|
2017-10-06 20:50:01 +08:00
|
|
|
</div>
|
|
|
|
<div className={styles.center}>
|
2017-10-24 21:19:58 +08:00
|
|
|
<AudioControlsContainer />
|
2017-11-11 11:41:37 +08:00
|
|
|
{Meteor.settings.public.kurento.enableVideo ?
|
|
|
|
<JoinVideoOptionsContainer
|
|
|
|
handleJoinVideo={handleJoinVideo}
|
|
|
|
handleCloseVideo={handleExitVideo}
|
|
|
|
/>
|
|
|
|
: null}
|
2017-11-24 01:20:27 +08:00
|
|
|
<EmojiSelect options={emojiList} selected={emojiSelected} onChange={handleEmojiChange} />
|
2017-10-06 20:50:01 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
2017-03-24 23:37:33 +08:00
|
|
|
|
2017-10-06 20:50:01 +08:00
|
|
|
export default ActionsBar;
|