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;
        onMarkRead: (notification: Notification) => void;
        onOpen: (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
    onMarkRead: (notification: Notification) => void
    onOpen: (notification: Notification) => void
    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.