Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jitsi-meet/react/features/share-room/reducer.ts

23 lines
547 B

import ReducerRegistry from '../base/redux/ReducerRegistry';
import { TOGGLE_SHARE_DIALOG } from './actionTypes';
const DEFAULT_STATE = {
shareDialogVisible: false
};
export interface IShareRoomState {
shareDialogVisible: boolean;
}
ReducerRegistry.register<IShareRoomState>('features/share-room', (state = DEFAULT_STATE, action): IShareRoomState => {
switch (action.type) {
case TOGGLE_SHARE_DIALOG:
return {
...state,
shareDialogVisible: action.visible
};
}
return state;
});