mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-21 04:24:02 +01:00
fix: examples
This commit is contained in:
@@ -4,7 +4,7 @@ import { IconifyIcon } from '@iconify/react';
|
||||
|
||||
interface ToolOptions {
|
||||
path: string;
|
||||
component: LazyExoticComponent<JSXElementConstructor<NonNullable<unknown>>>;
|
||||
component: LazyExoticComponent<JSXElementConstructor<ToolComponentProps>>;
|
||||
keywords: string[];
|
||||
icon?: IconifyIcon | string;
|
||||
name: string;
|
||||
@@ -25,6 +25,10 @@ export interface DefinedTool {
|
||||
component: () => JSX.Element;
|
||||
}
|
||||
|
||||
export interface ToolComponentProps {
|
||||
title?: any;
|
||||
}
|
||||
|
||||
export const defineTool = (
|
||||
basePath: ToolCategory,
|
||||
options: ToolOptions
|
||||
@@ -55,7 +59,7 @@ export const defineTool = (
|
||||
icon={icon}
|
||||
type={basePath}
|
||||
>
|
||||
<Component />
|
||||
<Component title={name} />
|
||||
</ToolLayout>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user