mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-21 04:24:02 +01:00
feat: ui changes
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user