Enode — API Reference
    Preparing search index...
    interface NotificationListProps {
        className?: string;
        expiryFor?: (
            notification: Notification,
        ) => { expired: boolean; label: string } | undefined;
        items: readonly 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;
        selectedIds?: ReadonlySet<string>;
        timeAgoFor: (notification: Notification) => string;
        unreadIds?: ReadonlySet<string>;
    }
    Index

    Properties

    className?: string
    expiryFor?: (
        notification: Notification,
    ) => { expired: boolean; label: string } | undefined

    Optional per-item export-link expiry sub-label + expired flag (the container owns the clock + translation). Returns undefined for items without one.

    items: readonly Notification[]
    onDelete: (notification: Notification) => void
    onExportAgain?: (notification: Notification) => void

    Forwarded to each row: "Export again" for an expired export.

    onMarkRead: (notification: Notification) => void
    onOpen: (notification: Notification) => void
    onReportProblem?: (notification: Notification) => void

    Forwarded to each row: "Report a problem" for a failed import.

    onRetryImport?: (notification: Notification) => void

    Forwarded to each row: "Try again" for a failed import.

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

    Selection mode (full page): render leading checkboxes.

    selectedIds?: ReadonlySet<string>
    timeAgoFor: (notification: Notification) => string

    Formats each notification's relative time (the container owns locale + clock).

    unreadIds?: ReadonlySet<string>

    Ids of unread notifications — a row renders unread when its id is present.