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

Function SubAgentProvider

src/components/CtrlOToExpand.tsx:14–28  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

12// too many "(ctrl+o to expand)" hints in sub agent output
13const SubAgentContext = React.createContext(false);
14export function SubAgentProvider(t0) {
15 const $ = _c(2);
16 const {
17 children
18 } = t0;
19 let t1;
20 if ($[0] !== children) {
21 t1 = <SubAgentContext.Provider value={true}>{children}</SubAgentContext.Provider>;
22 $[0] = children;
23 $[1] = t1;
24 } else {
25 t1 = $[1];
26 }
27 return t1;
28}
29export function CtrlOToExpand() {
30 const $ = _c(2);
31 const isInSubAgent = useContext(SubAgentContext);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected