MCPcopy Index your code
hub / github.com/codeaashu/claude-code / withTheme

Function withTheme

src/ink.ts:14–16  ·  view source on GitHub ↗
(node: ReactNode)

Source from the content-addressed store, hash-verified

12// Wrap all CC render calls with ThemeProvider so ThemedBox/ThemedText work
13// without every call site having to mount it. Ink itself is theme-agnostic.
14function withTheme(node: ReactNode): ReactNode {
15 return createElement(ThemeProvider, null, node)
16}
17
18export async function render(
19 node: ReactNode,

Callers 2

renderFunction · 0.85
createRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected