// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {useIntl} from 'react-intl'; import SettingBlock from '@components/settings/block'; import SettingOption from '@components/settings/option'; import SettingSeparator from '@components/settings/separator'; import {NotificationLevel} from '@constants'; import {t} from '@i18n'; type Props = { isSelected: boolean; notifyLevel: NotificationLevel; onPress: (selected: boolean) => void; } type NotifPrefOptions = { defaultMessage: string; id: string; testID: string; value: string; } const THREAD_REPLIES = {id: t('channel_notification_preferences.thread_replies'), defaultMessage: 'Thread replies'}; const NOTIFY_OPTIONS_THREAD: Record = { THREAD_REPLIES: { defaultMessage: 'Notify me about replies to threads I’m following in this channel', id: t('channel_notification_preferences.notification.thread_replies'), testID: 'channel_notification_preferences.notification.thread_replies', value: 'thread_replies', }, }; const NotifyAbout = ({isSelected, notifyLevel, onPress}: Props) => { const {formatMessage} = useIntl(); if ([NotificationLevel.NONE, NotificationLevel.ALL].includes(notifyLevel)) { return null; } return ( ); }; export default NotifyAbout;