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

29 lines
605 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,
},
userLocks: {
userWebcam: false,
userMic: false,
userNotes: false,
userPrivateChat: false,
userPublicChat: false,
},
});
}
const lockContext = React.createContext(new LockStruct());
export default lockContext;