import React from 'react' import NotificationItem from '../../NotificationItem' import { CommonNotificationProps, GovernanceNewCommentOnProposalNotification as GovernanceNewCommentOnProposalNotificationType } from '../../types' import NewCommentIcon from '../../../Icons/Notifications/NewCommentIcon' const i18N = { en: { description: (link: string): React.ReactNode => ( <> Engage in a productive conversation by replying to{' '} this comment . ), title: 'New comment posted on proposal' }, es: { description: (link: string): React.ReactNode => ( <> Participe en una conversación productiva respondiendo a{' '} este comentario . ), title: 'Nuevo comentario en tu propuesta' }, zh: { description: (link: string): React.ReactNode => ( <> 回复此评论 ,参与富有成效的对话 ), title: '就提案发表的新评论' } } /** * @deprecated Should start using the same component migrated to UI2. */ const GovernanceNewCommentOnProposalNotification = ({ notification, locale }: CommonNotificationProps) => ( }} timestamp={notification.timestamp} isNew={!notification.read} locale={locale} >

{i18N[locale].title}{' '} {notification.metadata.proposalTitle}

{i18N[locale].description(notification.metadata.link)}

) export default GovernanceNewCommentOnProposalNotification