bigbluebutton-Github/bigbluebutton-html5/imports/ui/services/users-settings/index.js

11 lines
288 B
JavaScript
Raw Normal View History

2024-04-24 22:18:58 +08:00
import { localUserSettings } from '../../core/local-states/useUserSettings';
export default function getFromUserSettings(setting, defaultValue) {
2024-04-24 22:18:58 +08:00
const userSetting = localUserSettings()[setting];
if (userSetting !== undefined) {
2024-04-24 22:18:58 +08:00
return userSetting;
}
return defaultValue;
}