chore: components base

This commit is contained in:
Corentin Thomasset 2022-04-04 00:24:45 +02:00
parent 64c92a661c
commit 25a8659786
No known key found for this signature in database
GPG key ID: DBD997E935996158
13 changed files with 821 additions and 19 deletions

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[];
}

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);