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

Function showDialog

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

Source from the content-addressed store, hash-verified

37 }));
38}
39export function showDialog<T = void>(root: Root, renderer: (done: (result: T) => void) => React.ReactNode): Promise<T> {
40 return new Promise<T>(resolve => {
41 const done = (result: T): void => void resolve(result);
42 root.render(renderer(done));
43 });
44}
45
46/**
47 * 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