feat: ui changes

This commit is contained in:
Ibrahima G. Coulibaly
2025-02-25 06:17:10 +00:00
parent 8917c3c2ec
commit d4c544609a
35 changed files with 190 additions and 68 deletions

View File

@@ -1,11 +1,12 @@
import ToolLayout from '../components/ToolLayout';
import React, { JSXElementConstructor, LazyExoticComponent } from 'react';
import { IconifyIcon } from '@iconify/react';
interface ToolOptions {
path: string;
component: LazyExoticComponent<JSXElementConstructor<NonNullable<unknown>>>;
keywords: string[];
image?: string;
icon?: IconifyIcon | string;
name: string;
description: string;
shortDescription: string;
@@ -19,7 +20,7 @@ export interface DefinedTool {
name: string;
description: string;
shortDescription: string;
image?: string;
icon?: IconifyIcon | string;
keywords: string[];
component: () => JSX.Element;
}
@@ -29,7 +30,7 @@ export const defineTool = (
options: ToolOptions
): DefinedTool => {
const {
image,
icon,
path,
name,
description,
@@ -42,7 +43,7 @@ export const defineTool = (
type: basePath,
path: `${basePath}/${path}`,
name,
image,
icon,
description,
shortDescription,
keywords,
@@ -51,7 +52,7 @@ export const defineTool = (
<ToolLayout
title={name}
description={description}
image={image}
icon={icon}
type={basePath}
>
<Component />