import React from 'react' import { CommonNotificationProps, LandRentedNotification as LandRentedNotificationType } from '../../types' import NotificationItem from '../../NotificationItem' import LandRentedIcon from '../../../Icons/Notifications/LandRented' import { IconBadge } from '../../../IconBadge' const i18N = { en: { description: ( coords: string, tenant: JSX.Element | string, link: string ): React.ReactNode => ( <> Your LAND at window.open(link, '_blank')} /> was rented by {tenant} ), title: 'LAND Rented' }, es: { description: ( coords: string, tenant: JSX.Element | string, link: string ): React.ReactNode => ( <> Tu LAND en window.open(link, '_blank')} /> fue alquilada por {tenant} ), title: 'LAND alquilada' }, zh: { description: ( coords: string, tenant: JSX.Element | string, link: string ): React.ReactNode => ( <> 你的土地 window.open(link, '_blank')} /> 租了 {tenant} ), title: '租用的土地' } } /** * @deprecated Should start using the same component migrated to UI2. */ export default function LandRentedNotificationCmp({ notification, locale, renderProfile }: CommonNotificationProps) { return ( }} timestamp={notification.timestamp} isNew={!notification.read} locale={locale} >

{i18N[locale].title}

{i18N[locale].description( notification.metadata.land, renderProfile ? renderProfile(notification.metadata.tenant) : notification.metadata.tenant, notification.metadata.link )}

) }