import React from 'react' import NotificationItemImage, { NotificationItemImageProps } from './NotificationItemImage' import Time from '../../lib/time' import './NotificationItem.css' import NewNotification from '../Icons/Notifications/NewNotification' import { NotificationLocale } from './types' interface NotificationItemProps { image: NotificationItemImageProps timestamp: number isNew: boolean locale: NotificationLocale } /** * @deprecated Should start using the same component migrated to UI2. */ export default function NotificationItem({ image, timestamp, isNew, children, locale }: React.PropsWithChildren) { return (
{children}

{Time(timestamp).locale(locale).fromNow()}

{isNew && }
) }