30 lines
629 B
JavaScript
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;
|