diff options
Diffstat (limited to 'frontend/src/components/Sidebar/Links.ts')
| -rw-r--r-- | frontend/src/components/Sidebar/Links.ts | 53 |
1 files changed, 53 insertions, 0 deletions
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 @@ | |||
| 1 | import { | ||
| 2 | FlagIcon, | ||
| 3 | HomeIcon, | ||
| 4 | PortalIcon, | ||
| 5 | BookIcon, | ||
| 6 | HelpIcon, | ||
| 7 | } from "../../images/Images"; | ||
| 8 | |||
| 9 | export interface SidebarLink { | ||
| 10 | to: string; | ||
| 11 | icon: any; | ||
| 12 | label: string; | ||
| 13 | }; | ||
| 14 | |||
| 15 | export interface SidebarLinks { | ||
| 16 | content: SidebarLink[]; | ||
| 17 | footer: SidebarLink[]; | ||
| 18 | } | ||
| 19 | |||
| 20 | const links: SidebarLinks = { | ||
| 21 | content: [ | ||
| 22 | { | ||
| 23 | to: "/", | ||
| 24 | icon: HomeIcon, | ||
| 25 | label: "Home Page" | ||
| 26 | }, | ||
| 27 | { | ||
| 28 | to: "/games", | ||
| 29 | icon: PortalIcon, | ||
| 30 | label: "Games" | ||
| 31 | }, | ||
| 32 | { | ||
| 33 | to: "/rankings", | ||
| 34 | icon: FlagIcon, | ||
| 35 | label: "Rankings" | ||
| 36 | }, | ||
| 37 | ], | ||
| 38 | |||
| 39 | footer: [ | ||
| 40 | { | ||
| 41 | to: "/rules", | ||
| 42 | icon: BookIcon, | ||
| 43 | label: "Leaderboard Rules" | ||
| 44 | }, | ||
| 45 | { | ||
| 46 | to: "/about", | ||
| 47 | icon: HelpIcon, | ||
| 48 | label: "About" | ||
| 49 | }, | ||
| 50 | ] | ||
| 51 | } | ||
| 52 | |||
| 53 | export default links; | ||