mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
18 lines
429 B
TypeScript
18 lines
429 B
TypeScript
|
|
import { defineTool } from '@tools/defineTool';
|
||
|
|
import { lazy } from 'react';
|
||
|
|
|
||
|
|
async function importComponent() {
|
||
|
|
const x = await import('./index');
|
||
|
|
return { default: x.default() };
|
||
|
|
}
|
||
|
|
export const tool = defineTool('number', {
|
||
|
|
name: 'Generic calc',
|
||
|
|
path: 'generic-calc',
|
||
|
|
icon: '',
|
||
|
|
description: '',
|
||
|
|
shortDescription: '',
|
||
|
|
keywords: ['generic', 'calc'],
|
||
|
|
longDescription: '',
|
||
|
|
component: lazy(importComponent)
|
||
|
|
});
|