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

32 lines
709 B
JavaScript

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