mirror of
https://github.com/Art051/it-tools.git
synced 2025-08-11 19:29:03 +00:00
chore: components base
This commit is contained in:
@@ -6,4 +6,11 @@ export interface ITool {
|
||||
description: string;
|
||||
keywords: string[];
|
||||
component: () => Promise<Component>;
|
||||
icon: Component;
|
||||
}
|
||||
|
||||
export interface ToolCategory {
|
||||
name: string;
|
||||
icon: Component;
|
||||
components: ITool[];
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { tool as tokenGenerator } from './token-generator';
|
||||
import type { ToolCategory } from './Tool';
|
||||
|
||||
export const tools = {
|
||||
crypto: [tokenGenerator],
|
||||
};
|
||||
export const toolsByCategory: ToolCategory[] = [];
|
||||
|
||||
export const tools = toolsByCategory.flatMap(({ components }) => components);
|
||||
|
||||
Reference in New Issue
Block a user