{
setShowDismissAllModal( false );
} }
/>
) }
{ ! notesHaveResolved && ! allNotes.length && (
) }
{ Boolean( allNotes.length ) &&
renderNotes( {
loadMoreNotes: () => {
recordEvent( 'inbox_action_load_more', {
quantity_shown: allNotes.length,
} );
setNoteDisplayQty(
noteDisplayQty + ADD_NOTES_AMOUNT
);
},
hasNotes: hasValidNotes( allNotes ),
isBatchUpdating,
notes: allNotes,
onDismiss,
onNoteActionClick: ( note, action ) => {
triggerNoteAction( note.id, action.id );
},
onNoteVisible,
setShowDismissAllModal,
showHeader,
allNotesFetched,
notesHaveResolved,
unreadNotesCount,
} ) }
>
);
};
export default InboxPanel;