// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {defineMessage, useIntl} from 'react-intl'; import FormattedText from '@components/formatted_text'; import SettingBlock from '@components/settings/block'; import SettingOption from '@components/settings/option'; import SettingSeparator from '@components/settings/separator'; import {useTheme} from '@context/theme'; import {makeStyleSheetFromTheme} from '@utils/theme'; import {typography} from '@utils/typography'; const headerText = defineMessage({ id: 'notification_settings.send_notification.about', defaultMessage: 'Notify me about...', }); const getStyleSheet = makeStyleSheetFromTheme((theme) => { return { disabled: { color: theme.centerChannelColor, paddingHorizontal: 15, paddingVertical: 10, ...typography('Body', 200, 'Regular'), }, }; }); type MobileSendPushProps = { pushStatus: UserNotifyPropsPushStatus; sendPushNotifications: boolean; setMobilePushPref: (status: UserNotifyPropsPushStatus) => void; } const MobileSendPush = ({sendPushNotifications, pushStatus, setMobilePushPref}: MobileSendPushProps) => { const theme = useTheme(); const styles = getStyleSheet(theme); const intl = useIntl(); return ( {sendPushNotifications && <> } {!sendPushNotifications && } ); }; export default MobileSendPush;