import type { Notification } from '@/lib/notificationService' import { NotificationContent } from './NotificationContent' import { NotificationActions } from './NotificationActions' interface NotificationItemProps { notification: Notification onNotificationClick: (notification: Notification) => void onDelete: (id: string) => void } export function NotificationItem({ notification, onNotificationClick, onDelete, }: NotificationItemProps): React.ReactElement { const handleDelete = (): void => { onDelete(notification.id) } return (
onNotificationClick(notification)} > {!notification.read && (
)}
) }