import React from 'react' import Reward from '../../../Icons/Notifications/Reward' import { CommonNotificationProps, CampaignOutOfFundsNotification as CampaignOutOfFundsNotificationType } from '../../types' import NotificationItem from '../../NotificationItem' import CampaignName from './CampaignName' const i18N = { en: { description: ( metadata: CampaignOutOfFundsNotificationType['metadata'] ): React.ReactNode => ( <> The campaign has run out of funds. > ), title: 'Campaign Out of Funds' }, es: { description: ( metadata: CampaignOutOfFundsNotificationType['metadata'] ): React.ReactNode => ( <> La campaña se ha quedado sin fondos. > ), title: 'Campaña sin fondos' }, zh: { description: ( metadata: CampaignOutOfFundsNotificationType['metadata'] ): React.ReactNode => ( <> 活动资金不足。 > ), title: '活动资金不足' } } /** * @deprecated Should start using the same component migrated to UI2. */ export default function CampaignOutOfFundsNotification({ notification, locale }: CommonNotificationProps) { return ( }} timestamp={notification.timestamp} isNew={!notification.read} locale={locale} > {i18N[locale].title} {i18N[locale].description(notification.metadata)} ) }
{i18N[locale].title}
{i18N[locale].description(notification.metadata)}