I made this code to work out, it recovers all the attachments of a case to a email sender custom lightning component wizard.
I render them to a datatable with a checkbox