30 lines
641 B
JavaScript
30 lines
641 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,
|
|
},
|
|
});
|
|
}
|
|
|
|
const lockContext = React.createContext(new LockStruct());
|
|
|
|
export default lockContext;
|