import React from 'react' import { CommonNotificationProps, LandRentalEndedNotification as LandRentalEndedNotificationType } from '../../types' import NotificationItem from '../../NotificationItem' import RentPeriodEnding from '../../../Icons/Notifications/RentPeriodEnding' import { IconBadge } from '../../../IconBadge' const i18N = { en: { description: (coords: string, link: string): React.ReactNode => ( <> The rent on your LAND at window.open(link, '_blank')} /> has ended ), title: 'Rent Period Ended' }, es: { description: (coords: string, link: string): React.ReactNode => ( <> El alquiler de su LAND en window.open(link, '_blank')} /> ha terminado ), title: 'Período de alquiler finalizado' }, zh: { description: (coords: string, link: string): React.ReactNode => ( <> 土地上的租金 window.open(link, '_blank')} /> 结束了 ), title: '租金期结束' } } /** * @deprecated Should start using the same component migrated to UI2. */ export default function LandRentalEndedNotificationCmp({ notification, locale }: CommonNotificationProps) { return ( }} timestamp={notification.timestamp} isNew={!notification.read} locale={locale} >

{i18N[locale].title}

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

) }