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

30 lines
631 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,
lockedLayout: false,
},
userLocks: {
userWebcam: false,
userMic: false,
userNotes: false,
2019-05-24 00:47:56 +08:00
userPrivateChat: false,
userPublicChat: false,
userLockedLayout: false,
},
});
}
const lockContext = React.createContext(new LockStruct());
2019-05-24 00:47:56 +08:00
export default lockContext;