File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,10 +10,9 @@ type OlsToolUIProps = {
1010 toolUIComponent : OlsToolUIComponent ;
1111} ;
1212
13- export const OlsToolUI : React . FC < OlsToolUIProps > = ( { tool, toolUIComponent : toolUIElement } ) => {
14- const ToolComponent = toolUIElement ;
15- return < ToolComponent tool = { tool } /> ;
16- } ;
13+ export const OlsToolUI : React . FC < OlsToolUIProps > = ( { tool, toolUIComponent : ToolComponent } ) => (
14+ < ToolComponent tool = { tool } />
15+ ) ;
1716
1817type OlsUIToolsProps = {
1918 entryIndex : number ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import type {
88import type { OlsToolUIComponent } from '../types' ;
99
1010type ToolUIExtensionProperties = {
11- /** Id of the component (as refferrenced by the mcp tool) */
11+ /** ID of the component (as refferrenced by the MCP tool) */
1212 id : string ;
1313 /** The component to be rendered when the MCP tool matches. */
1414 component : CodeRef < OlsToolUIComponent > ;
You can’t perform that action at this time.
0 commit comments