(t0)
| 24 | } |
| 25 | const TRUNCATE_AT = 60; |
| 26 | export function UserChannelMessage(t0) { |
| 27 | const $ = _c(29); |
| 28 | const { |
| 29 | addMargin, |
| 30 | param: t1 |
| 31 | } = t0; |
| 32 | const { |
| 33 | text |
| 34 | } = t1; |
| 35 | let T0; |
| 36 | let T1; |
| 37 | let T2; |
| 38 | let t2; |
| 39 | let t3; |
| 40 | let t4; |
| 41 | let t5; |
| 42 | let t6; |
| 43 | let t7; |
| 44 | let truncated; |
| 45 | let user; |
| 46 | if ($[0] !== addMargin || $[1] !== text) { |
| 47 | t7 = Symbol.for("react.early_return_sentinel"); |
| 48 | bb0: { |
| 49 | const m = CHANNEL_RE.exec(text); |
| 50 | if (!m) { |
| 51 | t7 = null; |
| 52 | break bb0; |
| 53 | } |
| 54 | const [, source, attrs, content] = m; |
| 55 | user = USER_ATTR_RE.exec(attrs ?? "")?.[1]; |
| 56 | const body = (content ?? "").trim().replace(/\s+/g, " "); |
| 57 | truncated = truncateToWidth(body, TRUNCATE_AT); |
| 58 | T2 = Box; |
| 59 | t6 = addMargin ? 1 : 0; |
| 60 | T1 = Text; |
| 61 | if ($[13] === Symbol.for("react.memo_cache_sentinel")) { |
| 62 | t4 = <Text color="suggestion">{CHANNEL_ARROW}</Text>; |
| 63 | $[13] = t4; |
| 64 | } else { |
| 65 | t4 = $[13]; |
| 66 | } |
| 67 | t5 = " "; |
| 68 | T0 = Text; |
| 69 | t2 = true; |
| 70 | t3 = displayServerName(source ?? ""); |
| 71 | } |
| 72 | $[0] = addMargin; |
| 73 | $[1] = text; |
| 74 | $[2] = T0; |
| 75 | $[3] = T1; |
| 76 | $[4] = T2; |
| 77 | $[5] = t2; |
| 78 | $[6] = t3; |
| 79 | $[7] = t4; |
| 80 | $[8] = t5; |
| 81 | $[9] = t6; |
| 82 | $[10] = t7; |
| 83 | $[11] = truncated; |
nothing calls this directly
no test coverage detected