MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / ToolDetailEmpty

Function ToolDetailEmpty

packages/react/src/components/tool-detail.tsx:509–529  ·  view source on GitHub ↗
(props: {
  hasTools: boolean;
  title?: string;
  description?: string;
  action?: ReactNode;
})

Source from the content-addressed store, hash-verified

507// ---------------------------------------------------------------------------
508
509export function ToolDetailEmpty(props: {
510 hasTools: boolean;
511 title?: string;
512 description?: string;
513 action?: ReactNode;
514}) {
515 const title = props.title ?? (props.hasTools ? "Select a tool" : "No tools available");
516 return (
517 <div className="flex h-full items-center justify-center">
518 <div className="max-w-sm text-center">
519 <p className="text-sm font-medium text-foreground">{title}</p>
520 {props.description || props.hasTools ? (
521 <p className="mt-1.5 text-sm text-muted-foreground">
522 {props.description ?? "Choose from the list to see what it does."}
523 </p>
524 ) : null}
525 {props.action ? <div className="mt-4">{props.action}</div> : null}
526 </div>
527 </div>
528 );
529}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected