MCPcopy
hub / github.com/claude-code-best/claude-code / showDialog

Function showDialog

src/interactiveHelpers.tsx:57–62  ·  view source on GitHub ↗
(root: Root, renderer: (done: (result: T) => void) => React.ReactNode)

Source from the content-addressed store, hash-verified

55 }));
56}
57export function showDialog<T = void>(root: Root, renderer: (done: (result: T) => void) => React.ReactNode): Promise<T> {
58 return new Promise<T>(resolve => {
59 const done = (result: T): void => void resolve(result);
60 root.render(renderer(done));
61 });
62}
63
64/**
65 * Render an error message through Ink, then unmount and exit.

Callers 1

showSetupDialogFunction · 0.85

Calls 1

renderMethod · 0.45

Tested by

no test coverage detected