(t0)
| 549 | // ScrollBox, and the diff engine sees "everything moved"). Fixed height |
| 550 | // keeps the ScrollBox anchored; only the header TEXT changes, not its box. |
| 551 | function StickyPromptHeader(t0) { |
| 552 | const $ = _c(8); |
| 553 | const { |
| 554 | text, |
| 555 | onClick |
| 556 | } = t0; |
| 557 | const [hover, setHover] = useState(false); |
| 558 | const t1 = hover ? "userMessageBackgroundHover" : "userMessageBackground"; |
| 559 | let t2; |
| 560 | let t3; |
| 561 | if ($[0] === Symbol.for("react.memo_cache_sentinel")) { |
| 562 | t2 = () => setHover(true); |
| 563 | t3 = () => setHover(false); |
| 564 | $[0] = t2; |
| 565 | $[1] = t3; |
| 566 | } else { |
| 567 | t2 = $[0]; |
| 568 | t3 = $[1]; |
| 569 | } |
| 570 | let t4; |
| 571 | if ($[2] !== text) { |
| 572 | t4 = <Text color="subtle" wrap="truncate-end">{figures.pointer} {text}</Text>; |
| 573 | $[2] = text; |
| 574 | $[3] = t4; |
| 575 | } else { |
| 576 | t4 = $[3]; |
| 577 | } |
| 578 | let t5; |
| 579 | if ($[4] !== onClick || $[5] !== t1 || $[6] !== t4) { |
| 580 | t5 = <Box flexShrink={0} width="100%" height={1} paddingRight={1} backgroundColor={t1} onClick={onClick} onMouseEnter={t2} onMouseLeave={t3}>{t4}</Box>; |
| 581 | $[4] = onClick; |
| 582 | $[5] = t1; |
| 583 | $[6] = t4; |
| 584 | $[7] = t5; |
| 585 | } else { |
| 586 | t5 = $[7]; |
| 587 | } |
| 588 | return t5; |
| 589 | } |
| 590 | |
| 591 | // Slash-command suggestion overlay — see promptOverlayContext.tsx for why |
| 592 | // it's portaled. Scroll-smear from floating over the DECSTBM region is |
nothing calls this directly
no outgoing calls
no test coverage detected