bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/lock-viewers/context/context.js
2019-06-11 15:23:27 -03:00

30 lines
629 B
JavaScript

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