mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-21 11:06:59 +01:00
Merge remote-tracking branch 'origin/string-join'
# Conflicts: # .idea/workspace.xml # src/tools/defineTool.tsx
This commit is contained in:
@@ -8,6 +8,7 @@ interface ToolOptions {
|
||||
image?: string;
|
||||
name: string;
|
||||
description: string;
|
||||
shortDescription: string;
|
||||
}
|
||||
|
||||
export interface DefinedTool {
|
||||
@@ -15,6 +16,7 @@ export interface DefinedTool {
|
||||
path: string;
|
||||
name: string;
|
||||
description: string;
|
||||
shortDescription: string;
|
||||
image?: string;
|
||||
keywords: string[];
|
||||
component: () => JSX.Element;
|
||||
@@ -24,7 +26,15 @@ export const defineTool = (
|
||||
basePath: string,
|
||||
options: ToolOptions
|
||||
): DefinedTool => {
|
||||
const { image, path, name, description, keywords, component } = options;
|
||||
const {
|
||||
image,
|
||||
path,
|
||||
name,
|
||||
description,
|
||||
keywords,
|
||||
component,
|
||||
shortDescription
|
||||
} = options;
|
||||
const Component = component;
|
||||
return {
|
||||
type: basePath,
|
||||
@@ -32,6 +42,7 @@ export const defineTool = (
|
||||
name,
|
||||
image,
|
||||
description,
|
||||
shortDescription,
|
||||
keywords,
|
||||
component: () => {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user