"use client"; import { PopoverShell } from "@/modules/system/components/status-bar/popover-shell"; import type { Notification } from "@/modules/system/components/status-bar/types"; type NotificationPopoverProps = { onClose: () => void; notifications: Notification[]; onMarkAllRead: () => void; onClearAll: () => void; onViewAll?: () => void; }; export function NotificationPopover({ onClose, notifications, onMarkAllRead, onClearAll, onViewAll, }: NotificationPopoverProps) { return (
Notifications
{notifications.length === 0 ? (
No alerts right now
) : ( notifications.map((item) => (
{!item.read && ( )}
{item.title} {item.time}

{item.message}

)) )}
); }