import React from 'react' import { CommonNotificationProps, GovernanceWhaleVoteNotification as GovernanceWhaleVoteNotificationType } from '../../types' import NotificationItem from '../../NotificationItem' import WhaleVote from '../../../Icons/Notifications/WhaleVote' const i18N = { en: { description: (link: string): React.ReactNode => ( <> A wallet holding over 250k VP has just{' '} cast a vote . Stay informed and see how this significant vote impacts the outcome. ), title: (proposalTitle: string): React.ReactNode => ( <> A whale voted on your proposal " {proposalTitle} " ) }, es: { description: (link: string): React.ReactNode => ( <> Una billetera con más de 250k VP acaba de{' '} emitir un voto . Mantente informado y revisa cómo este voto significativo impacta el resultado. ), title: (proposalTitle: string): React.ReactNode => ( <> Una ballena votó en tu propuesta " {proposalTitle} " ) }, zh: { description: (link: string): React.ReactNode => ( <> 一个持有超过25万VP的钱包刚刚投票。 保持关注,看看这一重要投票如何影响最终结果。 ), title: (proposalTitle: string): React.ReactNode => ( <> 一位鲸鱼对您的提案" {proposalTitle} "进行了投票 ) } } /** * @deprecated Should start using the same component migrated to UI2. */ const GovernanceWhaleVoteNotification = ({ 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 GovernanceWhaleVoteNotification