MCPcopy Create free account
hub / github.com/codeaashu/claude-code / AttachmentList

Function AttachmentList

src/tools/BriefTool/UI.tsx:72–97  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

70 attachments: Output['attachments'];
71};
72export 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}
98function _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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected