25 lines
669 B
JavaScript
Executable File
25 lines
669 B
JavaScript
Executable File
import Breakouts from '/imports/api/2.0/breakouts';
|
|
import Settings from '/imports/ui/services/settings';
|
|
import Auth from '/imports/ui/services/auth/index';
|
|
|
|
const getCaptionsStatus = () => {
|
|
const ccSettings = Settings.cc;
|
|
return ccSettings ? ccSettings.enabled : false;
|
|
};
|
|
|
|
const getFontSize = () => {
|
|
const applicationSettings = Settings.application;
|
|
return applicationSettings ? applicationSettings.fontSize : '16px';
|
|
};
|
|
|
|
function meetingIsBreakout() {
|
|
const breakouts = Breakouts.find().fetch();
|
|
return (breakouts && breakouts.some(b => b.breakoutMeetingId === Auth.meetingID));
|
|
}
|
|
|
|
export {
|
|
getCaptionsStatus,
|
|
getFontSize,
|
|
meetingIsBreakout,
|
|
};
|