feat: implement UUID generator tool and refactor tool structure

- Added a new Tool interface to define the structure of tools.
- Introduced a UUID generator tool with a corresponding component and icon.
- Refactored the tools array to include the new UUID generator tool.
This commit is contained in:
typist
2025-10-28 00:32:12 +08:00
parent 211ad4bd64
commit df25315367
3 changed files with 25 additions and 7 deletions

View File

@@ -1,8 +1,14 @@
interface Tool {
name: string;
description: string;
icon: React.ReactNode;
component: React.ReactNode;
}
import { Hash } from 'lucide-react'
export const tools: Tool[] = [];
import type { Tool } from "./type";
import { UUID } from './uuid'
export const tools: Tool[] = [
{
path: "uuid",
name: "UUID Generator",
description: "Generate a UUID",
icon: <Hash />,
component: <UUID />,
}
];