MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / MessageResponse

Function MessageResponse

source code/components/MessageResponse.tsx:12–59  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

10 height?: number;
11};
12export function MessageResponse(t0) {
13 const $ = _c(8);
14 const {
15 children,
16 height
17 } = t0;
18 const isMessageResponse = useContext(MessageResponseContext);
19 if (isMessageResponse) {
20 return children;
21 }
22 let t1;
23 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
24 t1 = <NoSelect fromLeftEdge={true} flexShrink={0}><Text dimColor={true}>{" "}⎿  </Text></NoSelect>;
25 $[0] = t1;
26 } else {
27 t1 = $[0];
28 }
29 let t2;
30 if ($[1] !== children) {
31 t2 = <Box flexShrink={1} flexGrow={1}>{children}</Box>;
32 $[1] = children;
33 $[2] = t2;
34 } else {
35 t2 = $[2];
36 }
37 let t3;
38 if ($[3] !== height || $[4] !== t2) {
39 t3 = <MessageResponseProvider><Box flexDirection="row" height={height} overflowY="hidden">{t1}{t2}</Box></MessageResponseProvider>;
40 $[3] = height;
41 $[4] = t2;
42 $[5] = t3;
43 } else {
44 t3 = $[5];
45 }
46 const content = t3;
47 if (height !== undefined) {
48 return content;
49 }
50 let t4;
51 if ($[6] !== content) {
52 t4 = <Ratchet lock="offscreen">{content}</Ratchet>;
53 $[6] = content;
54 $[7] = t4;
55 } else {
56 t4 = $[7];
57 }
58 return t4;
59}
60
61// This is a context that is used to determine if the message response
62// is rendered as a descendant of another MessageResponse. We use it

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected