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

Function ShutdownRequestDisplay

src/components/messages/ShutdownMessage.tsx:12–43  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

10 * Renders a shutdown request with a warning-colored border.
11 */
12export function ShutdownRequestDisplay(t0) {
13 const $ = _c(7);
14 const {
15 request
16 } = t0;
17 let t1;
18 if ($[0] !== request.from) {
19 t1 = <Box marginBottom={1}><Text color="warning" bold={true}>Shutdown request from {request.from}</Text></Box>;
20 $[0] = request.from;
21 $[1] = t1;
22 } else {
23 t1 = $[1];
24 }
25 let t2;
26 if ($[2] !== request.reason) {
27 t2 = request.reason && <Box><Text>Reason: {request.reason}</Text></Box>;
28 $[2] = request.reason;
29 $[3] = t2;
30 } else {
31 t2 = $[3];
32 }
33 let t3;
34 if ($[4] !== t1 || $[5] !== t2) {
35 t3 = <Box flexDirection="column" marginY={1}><Box borderStyle="round" borderColor="warning" flexDirection="column" paddingX={1} paddingY={1}>{t1}{t2}</Box></Box>;
36 $[4] = t1;
37 $[5] = t2;
38 $[6] = t3;
39 } else {
40 t3 = $[6];
41 }
42 return t3;
43}
44type ShutdownRejectedProps = {
45 response: ShutdownRejectedMessage;
46};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected