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

Function ElicitationDialog

src/components/mcp/ElicitationDialog.tsx:112–142  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

110 }
111}
112export function ElicitationDialog(t0) {
113 const $ = _c(7);
114 const {
115 event,
116 onResponse,
117 onWaitingDismiss
118 } = t0;
119 if (event.params.mode === "url") {
120 let t1;
121 if ($[0] !== event || $[1] !== onResponse || $[2] !== onWaitingDismiss) {
122 t1 = <ElicitationURLDialog event={event} onResponse={onResponse} onWaitingDismiss={onWaitingDismiss} />;
123 $[0] = event;
124 $[1] = onResponse;
125 $[2] = onWaitingDismiss;
126 $[3] = t1;
127 } else {
128 t1 = $[3];
129 }
130 return t1;
131 }
132 let t1;
133 if ($[4] !== event || $[5] !== onResponse) {
134 t1 = <ElicitationFormDialog event={event} onResponse={onResponse} />;
135 $[4] = event;
136 $[5] = onResponse;
137 $[6] = t1;
138 } else {
139 t1 = $[6];
140 }
141 return t1;
142}
143function ElicitationFormDialog({
144 event,
145 onResponse

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected