import React from 'react' import Link from 'next/link' import type { Notification } from '@/types/notifications' import { formatTime } from '@/lib/formatTime' interface NotificationContentProps { notification: Notification } export function NotificationContent({ notification }: NotificationContentProps) { return (
{notification.title}
{!notification.read && ( )}{notification.message}
{notification.articleId && ( e.stopPropagation()} className="text-xs text-blue-600 hover:text-blue-700 mt-1 inline-block" > View article → )}