MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getToolInputViewWith

Function getToolInputViewWith

static/components.ts:291–305  ·  view source on GitHub ↗
(
    compilerId: number,
    toolId: string,
    toolName: string,
)

Source from the content-addressed store, hash-verified

289
290/** Get a tool input view component with the given configuration. */
291export function getToolInputViewWith(
292 compilerId: number,
293 toolId: string,
294 toolName: string,
295): ComponentConfig<typeof TOOL_INPUT_VIEW_COMPONENT_NAME> {
296 return {
297 type: 'component',
298 componentName: TOOL_INPUT_VIEW_COMPONENT_NAME,
299 componentState: {
300 compilerId,
301 toolId,
302 toolName,
303 },
304 };
305}
306
307/** Get an empty diff component. */
308export function getDiffView(): ComponentConfig<typeof DIFF_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected