chore: components base
This commit is contained in:
13 files changed
+821
-19
No files matched your search
@@ -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[];
|
||||
}
|
||||
+4
-4
@@ -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