(props: {
hasTools: boolean;
title?: string;
description?: string;
action?: ReactNode;
})
| 507 | // --------------------------------------------------------------------------- |
| 508 | |
| 509 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected