Enode — API Reference
    Preparing search index...
    interface NotificationItemProps {
        expired?: boolean;
        expiryLabel?: string;
        notification: Notification;
        onDelete: (notification: Notification) => void;
        onMarkRead: (notification: Notification) => void;
        onOpen: (notification: Notification) => void;
        onToggleSelect?: (notification: Notification) => void;
        selectable?: boolean;
        selected?: boolean;
        timeAgo: string;
        unread: boolean;
    }
    Index

    Properties

    expired?: boolean

    Whether expiryLabel is the expired state (renders muted).

    expiryLabel?: string

    Pre-formatted expiry sub-label for an export-download link (e.g. "Expires in 12m" or "Link expired"); omitted for notifications without an expiring link. The container owns the clock + translation (like timeAgo).

    notification: Notification
    onDelete: (notification: Notification) => void

    Delete from the ⋯ menu.

    onMarkRead: (notification: Notification) => void

    Mark read from the ⋯ menu (the menu item shows only while unread).

    onOpen: (notification: Notification) => void

    Open the notification (row click) — the container marks it read.

    onToggleSelect?: (notification: Notification) => void
    selectable?: boolean

    Full-page selection mode: render a leading checkbox.

    selected?: boolean
    timeAgo: string

    Pre-formatted relative time (e.g. "5 minutes ago"); empty hides the stamp.

    unread: boolean

    Whether this notification is unread (the backend has no per-item readAt).