refactor: consolidate Tool interface and UUID component

- Moved Tool interface definition from type.ts to index.tsx for better organization.
- Renamed UUID component to Tool in uuid.tsx and updated its export.
- Removed the now redundant type.ts file.
This commit is contained in:
typist
2025-10-28 03:27:10 +08:00
parent 16aa543431
commit c0aa618dfa
3 changed files with 14 additions and 13 deletions

View File

@@ -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 (
<div className="flex flex-col gap-4">
<span className="text-sm text-muted-foreground">Refresh the page to generate new UUID</span>
@@ -19,4 +19,6 @@ export const UUID: FC = () => {
<span>{nanoid()}</span>
</div>
);
};
};
export default Tool;