- {media.type === 'image' ? (
-

{
- setAttachmentPreviewUrl(media.url);
- setAttachmentPreviewType('image');
- setAttachmentPreviewName(media.name);
- setAttachmentPreviewVisible(true);
- }}
- style={{ width: 50, height: 54, objectFit: 'cover', borderRadius: 11, cursor: 'pointer', border: '2px solid rgba(255,255,255,0.98)', boxShadow: '0 8px 18px rgba(31, 41, 55, 0.14)' }}
- />
- ) : (
-