import { truncate } from '@/utils/HelperUtil' import { Avatar, Button, Card, Link, Text, Tooltip } from '@nextui-org/react' import Image from 'next/image' /** * Types */ interface IProps { logo?: string title?: string body?: string url?: string publishedAt?: number onDelete: () => Promise } /** * Component */ export default function NotificationItem({ logo, title, body, url, publishedAt, onDelete }: IProps) { return (
{title} {/*
*/} {body} {publishedAt && ( {new Date(publishedAt).toLocaleDateString()} -{' '} {new Date(publishedAt).toLocaleTimeString()} )} {url}
) }