import { SubscriptionManager } from '@automattic/data-stores'; import { Button } from '@wordpress/components'; import clsx from 'clsx'; import { useTranslate } from 'i18n-calypso'; import { SubscriptionsEllipsisMenu } from '../../subscriptions-ellipsis-menu'; import UnsubscribeIcon from '../icons/unsubscribe-icon'; import NotifyMeOfNewCommentsToggle from './notify-me-of-new-comments-toggle'; import '../styles.scss'; type CommentSettingsProps = { notifyMeOfNewComments: boolean; onNotifyMeOfNewCommentsChange: ( value: boolean ) => void; updatingNotifyMeOfNewComments: boolean; onUnsubscribe: () => void; unsubscribing: boolean; }; const CommentSettings = ( { notifyMeOfNewComments, onNotifyMeOfNewCommentsChange, updatingNotifyMeOfNewComments, onUnsubscribe, unsubscribing, }: CommentSettingsProps ) => { const translate = useTranslate(); const { isLoggedIn } = SubscriptionManager.useIsLoggedIn(); return ( { isLoggedIn && (
) }
); }; export default CommentSettings;