jiti-meet/react/features/welcome/actions.js

21 lines
465 B
JavaScript

// @flow
import { SET_SIDEBAR_VISIBLE } from './actionTypes';
/**
* Sets the visibility of {@link WelcomePageSideBar}.
*
* @param {boolean} visible - If the {@code WelcomePageSideBar} is to be made
* visible, {@code true}; otherwise, {@code false}.
* @returns {{
* type: SET_SIDEBAR_VISIBLE,
* visible: boolean
* }}
*/
export function setSideBarVisible(visible: boolean) {
return {
type: SET_SIDEBAR_VISIBLE,
visible
};
}