chore: use full meta init

This commit is contained in:
Ibrahima G. Coulibaly
2025-04-17 08:03:18 +01:00
parent 779a5cfdb7
commit 6310fbdc0e
8 changed files with 31 additions and 23 deletions

View File

@@ -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,