* Add the Component Library to the app * fix i18n --------- Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
18 lines
603 B
TypeScript
18 lines
603 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {withDatabase, withObservables} from '@nozbe/watermelondb/react';
|
|
|
|
import {observeConfigBooleanValue} from '@queries/servers/system';
|
|
|
|
import AdvancedSettings from './advanced';
|
|
|
|
import type {WithDatabaseArgs} from '@typings/database/database';
|
|
|
|
const enhanced = withObservables([], ({database}: WithDatabaseArgs) => {
|
|
return {
|
|
isDevMode: observeConfigBooleanValue(database, 'EnableDeveloper', false),
|
|
};
|
|
});
|
|
|
|
export default withDatabase(enhanced(AdvancedSettings));
|