chore: components base

This commit is contained in:
Corentin Thomasset committed 2022-04-04 00:24:45 +02:00
1 parent 64c92a661c
commit 25a8659786
13 files changed
+821 -19

No files matched your search

+7
View File
@@ -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
View File
@@ -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);