mattermost-mobile/app/components/post_draft/draft_input/index.ts
Rajat Dabade 098c219932
Unlicensed server should not show the tooltip on channel send button (#8806)
* Unlicensed server should not show the tooltip on channel send button

* Added config and license check for fetching and displaying scheduled post
2025-04-29 17:21:09 +05:30

19 lines
626 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 {observeScheduledPostEnabled} from '@queries/servers/scheduled_post';
import DraftInput from './draft_input';
import type {WithDatabaseArgs} from '@typings/database/database';
const enhanced = withObservables([], ({database}: WithDatabaseArgs) => {
const scheduledPostsEnabled = observeScheduledPostEnabled(database);
return {
scheduledPostsEnabled,
};
});
export default withDatabase(enhanced(DraftInput));