setPreviewFile(a)}
+ onMouseEnter={e => { e.currentTarget.style.transform = 'scale(1.06)'; e.currentTarget.style.boxShadow = '0 2px 8px rgba(0,0,0,0.15)' }}
+ onMouseLeave={e => { e.currentTarget.style.transform = 'scale(1)'; e.currentTarget.style.boxShadow = 'none' }} />
+ ) : (
+ setPreviewFile(a)}
+ style={{
+ width: 64, height: 64, borderRadius: 8, cursor: 'pointer',
+ background: a.mime_type === 'application/pdf' ? '#ef44441a' : 'var(--bg-secondary)',
+ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', gap: 1,
+ transition: 'transform 0.12s, box-shadow 0.12s',
+ }}
+ onMouseEnter={e => { e.currentTarget.style.transform = 'scale(1.06)'; e.currentTarget.style.boxShadow = '0 2px 8px rgba(0,0,0,0.15)' }}
+ onMouseLeave={e => { e.currentTarget.style.transform = 'scale(1)'; e.currentTarget.style.boxShadow = 'none' }}>
+ {ext}
+
+ )}
+ {a.original_name}
+