mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-21 20:44:02 +01:00
chore: use full meta init
This commit is contained in:
@@ -2,7 +2,7 @@ import ToolLayout from '../components/ToolLayout';
|
||||
import React, { JSXElementConstructor, LazyExoticComponent } from 'react';
|
||||
import { IconifyIcon } from '@iconify/react';
|
||||
|
||||
interface ToolOptions {
|
||||
export interface ToolMeta {
|
||||
path: string;
|
||||
component: LazyExoticComponent<JSXElementConstructor<ToolComponentProps>>;
|
||||
keywords: string[];
|
||||
@@ -23,7 +23,6 @@ export type ToolCategory =
|
||||
| 'json'
|
||||
| 'time'
|
||||
| 'csv'
|
||||
| 'time'
|
||||
| 'pdf';
|
||||
|
||||
export interface DefinedTool {
|
||||
@@ -44,7 +43,7 @@ export interface ToolComponentProps {
|
||||
|
||||
export const defineTool = (
|
||||
basePath: ToolCategory,
|
||||
options: ToolOptions
|
||||
options: ToolMeta
|
||||
): DefinedTool => {
|
||||
const {
|
||||
icon,
|
||||
|
||||
Reference in New Issue
Block a user