import React from 'react' import { CommonNotificationProps, EventsStartedNotification as EventsStartedNotificationType } from '../../types' import NotificationItem from '../../NotificationItem' import EventStarted from '../../../Icons/Notifications/EventStarted' const i18N = { en: { description: ( metadata: EventsStartedNotificationType['metadata'] ): React.ReactNode => ( <> The event {metadata.name} has begun! > ), title: 'Event started' }, es: { description: ( metadata: EventsStartedNotificationType['metadata'] ): React.ReactNode => ( <> El evento {metadata.name} ha empezado! > ), title: 'Evento ha comenzado' }, zh: { description: ( metadata: EventsStartedNotificationType['metadata'] ): React.ReactNode => ( <> 事件 {metadata.name} 已开始 > ), title: '事件开始' } } /** * @deprecated Should start using the same component migrated to UI2. */ const EventsStartedNotification = ({ notification, locale }: CommonNotificationProps) => ( }} timestamp={notification.timestamp} isNew={!notification.read} locale={locale} > {i18N[locale].title} {i18N[locale].description(notification.metadata)} ) export default EventsStartedNotification
{i18N[locale].title}
{i18N[locale].description(notification.metadata)}