import React from 'react' import Reward from '../../../Icons/Notifications/Reward' import { CommonNotificationProps, CampaignGasPriceHigherThanExpectedNotification as CampaignGasPriceHigherThanExpectedNotificationType } from '../../types' import NotificationItem from '../../NotificationItem' import CampaignName from './CampaignName' const i18N = { en: { description: ( metadata: CampaignGasPriceHigherThanExpectedNotificationType['metadata'] ): React.ReactNode => ( <> The gas price for the campaign is lower than expected, and the transactions may not be processed. ), title: 'Gas Price Higher Than Expected' }, es: { description: ( metadata: CampaignGasPriceHigherThanExpectedNotificationType['metadata'] ): React.ReactNode => ( <> El precio del gas para la campaña {' '} es más alto de lo esperado, y las transacciones pueden no ser procesadas. ), title: 'Precio del Gas Más Alto de lo Esperado' }, zh: { description: ( metadata: CampaignGasPriceHigherThanExpectedNotificationType['metadata'] ): React.ReactNode => ( <> {' '} 活动的燃气价格高于预期,交易可能无法处理。 ), title: '燃气价格高于预期' } } /** * @deprecated Should start using the same component migrated to UI2. */ export default function CampaignGasPriceHigherThanExpectedNotification({ notification, locale }: CommonNotificationProps) { return ( }} timestamp={notification.timestamp} isNew={!notification.read} locale={locale} >

{i18N[locale].title}

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

) }