(t0)
| 70 | attachments: Output['attachments']; |
| 71 | }; |
| 72 | export function AttachmentList(t0) { |
| 73 | const $ = _c(4); |
| 74 | const { |
| 75 | attachments |
| 76 | } = t0; |
| 77 | if (!attachments || attachments.length === 0) { |
| 78 | return null; |
| 79 | } |
| 80 | let t1; |
| 81 | if ($[0] !== attachments) { |
| 82 | t1 = attachments.map(_temp); |
| 83 | $[0] = attachments; |
| 84 | $[1] = t1; |
| 85 | } else { |
| 86 | t1 = $[1]; |
| 87 | } |
| 88 | let t2; |
| 89 | if ($[2] !== t1) { |
| 90 | t2 = <Box flexDirection="column" marginTop={1}>{t1}</Box>; |
| 91 | $[2] = t1; |
| 92 | $[3] = t2; |
| 93 | } else { |
| 94 | t2 = $[3]; |
| 95 | } |
| 96 | return t2; |
| 97 | } |
| 98 | function _temp(att) { |
| 99 | return <Box key={att.path} flexDirection="row"><Text dimColor={true}>{figures.pointerSmall} {att.isImage ? "[image]" : "[file]"}{" "}</Text><Text>{getDisplayPath(att.path)}</Text><Text dimColor={true}> ({formatFileSize(att.size)})</Text></Box>; |
| 100 | } |
nothing calls this directly
no outgoing calls
no test coverage detected