import React from 'react' import NotificationItem from '../../NotificationItem' import { CommonNotificationProps, GovernanceProposalEnactedNotification as GovernanceProposalEnactedNotificationType } from '../../types' import ProjectEnactedIcon from '../../../Icons/Notifications/ProjectEnactedIcon' const i18N = { en: { description: (link: string): React.ReactNode => ( <> Congratulations!{' '} Your Project {' '} has been successfully enacted and a funding Vesting Contract was created. ), title: 'Your Project has been funded' }, es: { description: (link: string): React.ReactNode => ( <> Felicitaciones!{' '} Tu proyecto {' '} ha sido aprobado y un Vesting Contract de financiamiento fue creado. ), title: 'Su proyecto ha sido financiado' }, zh: { description: (link: string): React.ReactNode => ( <> 恭喜您! 您的项目已成功立项 ,并签订了资金归属合同. ), title: '您的项目已获得资助' } } /** * @deprecated Should start using the same component migrated to UI2. */ const GovernanceProposalEnactedNotification = ({ notification, locale }: CommonNotificationProps) => ( }} timestamp={notification.timestamp} isNew={!notification.read} locale={locale} >

{i18N[locale].title}

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

) export default GovernanceProposalEnactedNotification