From 246eabe4a46d2585d653738e46089ed2bfada8bd Mon Sep 17 00:00:00 2001 From: Wolfboy248 Date: Mon, 25 Aug 2025 09:36:51 +0200 Subject: Restructured sidebar and implemented links var --- frontend/src/components/Sidebar/Links.ts | 53 ++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 frontend/src/components/Sidebar/Links.ts (limited to 'frontend/src/components/Sidebar/Links.ts') diff --git a/frontend/src/components/Sidebar/Links.ts b/frontend/src/components/Sidebar/Links.ts new file mode 100644 index 0000000..dfb621d --- /dev/null +++ b/frontend/src/components/Sidebar/Links.ts @@ -0,0 +1,53 @@ +import { + FlagIcon, + HomeIcon, + PortalIcon, + BookIcon, + HelpIcon, +} from "../../images/Images"; + +export interface SidebarLink { + to: string; + icon: any; + label: string; +}; + +export interface SidebarLinks { + content: SidebarLink[]; + footer: SidebarLink[]; +} + +const links: SidebarLinks = { + content: [ + { + to: "/", + icon: HomeIcon, + label: "Home Page" + }, + { + to: "/games", + icon: PortalIcon, + label: "Games" + }, + { + to: "/rankings", + icon: FlagIcon, + label: "Rankings" + }, + ], + + footer: [ + { + to: "/rules", + icon: BookIcon, + label: "Leaderboard Rules" + }, + { + to: "/about", + icon: HelpIcon, + label: "About" + }, + ] +} + +export default links; -- cgit v1.2.3