mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-06-18 12:15:10 -04:00
chore: components base
This commit is contained in:
parent
64c92a661c
commit
25a8659786
13 changed files with 821 additions and 19 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue