diff --git a/src/pages/tools/assets.tsx b/src/pages/tools/assets.tsx new file mode 100644 index 0000000..9c71c2d --- /dev/null +++ b/src/pages/tools/assets.tsx @@ -0,0 +1,48 @@ +import { + Button, + Container, + Paper, + SimpleGrid, + Text, + TextInput, +} from "@mantine/core"; + +import Layout from "@/components/layout"; +import { useState } from "react"; +import DynamicIcon from "@/components/core/DynamicIcon"; +import { IconError404 } from "@tabler/icons-react"; + +interface Category { + id: string; + name: string; + icon: string; +} + +export default function Assets() { + const [categoriesResult, setCategoriesResult] = useState([]); + + const handleGetCategories = async () => { + const res = await fetch( + `${process.env.NEXT_PUBLIC_ASSET_SYSTEM_API}/assets/categories` + ).then((res) => res.json()); + setCategoriesResult(res); + }; + + return ( + + + + + {categoriesResult.map((category) => { + return ( + + ); + })} + + + + ); +} diff --git a/src/util/links.ts b/src/util/links.ts index ca50819..d6eb333 100644 --- a/src/util/links.ts +++ b/src/util/links.ts @@ -1,5 +1,6 @@ import { IconClock, + IconFiles, IconList, IconMap, IconMessageReport, @@ -24,6 +25,7 @@ export const toolsNavLiks: NavLink[] = [ { link: "/timezone", label: "Timezone Converter", icon: IconClock }, { link: "/coordinates", label: "Coordinate Converter", icon: IconMap }, { link: "/report", label: "Reports", icon: IconMessageReport }, + { link: "/assets", label: "Assets", icon: IconFiles} ]; /**