bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/lock-viewers/context/context.js

29 lines
605 B
JavaScript
Raw Normal View History

2019-05-24 00:47:56 +08:00
import React from 'react';
export function LockStruct() {
2019-05-24 00:47:56 +08:00
return ({
isLocked: false,
lockSettings: {
disableCam: false,
disableMic: false,
disableNotes: false,
2019-05-24 00:47:56 +08:00
disablePrivateChat: false,
disablePublicChat: false,
lockOnJoin: true,
lockOnJoinConfigurable: false,
hideViewersCursor: false,
2019-05-24 00:47:56 +08:00
},
userLocks: {
userWebcam: false,
userMic: false,
userNotes: false,
2019-05-24 00:47:56 +08:00
userPrivateChat: false,
userPublicChat: false,
},
});
}
const lockContext = React.createContext(new LockStruct());
2019-05-24 00:47:56 +08:00
export default lockContext;