e.stopPropagation()}>
{h.directFile?.type.startsWith('image/') && h.directFilePreview && (

)}
{h.directFile?.type === 'application/pdf' && h.directFilePreview && (
)}
{h.selectedMobileFile && !h.directFile && (
h.selectedMobileFile.type.startsWith('image/')
?

:
)}
{h.selectedDocumentId && !h.directFile && !h.selectedMobileFile && (() => {
const doc = h.storedDocuments.find(d => d.id === h.selectedDocumentId)
if (!doc?.url) return null
return doc.type.startsWith('image/')
?

:
})()}