refactor: tools folder inside pages

This commit is contained in:
Ibrahima G. Coulibaly
2025-02-23 01:38:42 +01:00
parent 62f084eb45
commit 64936ab11f
117 changed files with 447 additions and 194 deletions

View File

@@ -11,8 +11,10 @@ interface ToolOptions {
shortDescription: string;
}
export type ToolCategory = 'string' | 'png' | 'number' | 'gif' | 'list';
export interface DefinedTool {
type: string;
type: ToolCategory;
path: string;
name: string;
description: string;
@@ -23,7 +25,7 @@ export interface DefinedTool {
}
export const defineTool = (
basePath: string,
basePath: ToolCategory,
options: ToolOptions
): DefinedTool => {
const {