(t0)
| 10 | * Renders a shutdown request with a warning-colored border. |
| 11 | */ |
| 12 | export 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 | } |
| 44 | type ShutdownRejectedProps = { |
| 45 | response: ShutdownRejectedMessage; |
| 46 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected