Enode — API Reference
    Preparing search index...
    interface NotificationItemProps {
        expired?: boolean;
        expiryLabel?: string;
        notification: Notification;
        onDelete: (notification: Notification) => void;
        onExportAgain?: (notification: Notification) => void;
        onMarkRead: (notification: Notification) => void;
        onOpen: (notification: Notification) => void;
        onReportProblem?: (notification: Notification) => void;
        onRetryImport?: (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.

    onExportAgain?: (notification: Notification) => void

    Request a fresh export for an expired export row ("Export again").

    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.

    onReportProblem?: (notification: Notification) => void

    Report a problem with a failed athlete import.

    onRetryImport?: (notification: Notification) => void

    Retry a failed athlete import ("Try again").

    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).