diff --git a/src/components/tool/index.tsx b/src/components/tool/index.tsx index ab2c2ef..64aa641 100644 --- a/src/components/tool/index.tsx +++ b/src/components/tool/index.tsx @@ -1,7 +1,15 @@ +import type { ReactNode } from 'react'; import { Hash } from 'lucide-react' -import type { Tool } from "./type"; -import { UUID } from './uuid' +import UUID from './uuid' + +export interface Tool { + path: string; + name: string; + icon: ReactNode; + description: string; + component: ReactNode; +} export const tools: Tool[] = [ { diff --git a/src/components/tool/type.ts b/src/components/tool/type.ts deleted file mode 100644 index c12eed8..0000000 --- a/src/components/tool/type.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { ReactNode } from "react"; - -export interface Tool { - path: string; - name: string; - icon: ReactNode; - description: string; - component: ReactNode; -} \ No newline at end of file diff --git a/src/components/tool/uuid.tsx b/src/components/tool/uuid.tsx index 3d8464b..dd67bd1 100644 --- a/src/components/tool/uuid.tsx +++ b/src/components/tool/uuid.tsx @@ -3,7 +3,7 @@ import { type FC } from "react"; import * as uuid from 'uuid' import { nanoid } from 'nanoid' -export const UUID: FC = () => { +const Tool: FC = () => { return (
Refresh the page to generate new UUID @@ -19,4 +19,6 @@ export const UUID: FC = () => { {nanoid()}
); -}; \ No newline at end of file +}; + +export default Tool; \ No newline at end of file