aboutsummaryrefslogtreecommitdiff
path: root/src/components/nav-main.tsx
diff options
context:
space:
mode:
authorMax Nanis2025-05-28 04:41:37 +0100
committerMax Nanis2025-05-28 04:41:37 +0100
commit8caa77413ea372e5cbd2980a9922d701af359c04 (patch)
tree9341e2f70fab6b2678fdff53c002954ef69c7b3e /src/components/nav-main.tsx
downloadpanel-ui-8caa77413ea372e5cbd2980a9922d701af359c04.tar.gz
panel-ui-8caa77413ea372e5cbd2980a9922d701af359c04.zip
initial commit
Diffstat (limited to 'src/components/nav-main.tsx')
-rw-r--r--src/components/nav-main.tsx52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/components/nav-main.tsx b/src/components/nav-main.tsx
new file mode 100644
index 0000000..873d236
--- /dev/null
+++ b/src/components/nav-main.tsx
@@ -0,0 +1,52 @@
+"use client"
+
+import {ListIcon, NotebookText, Users} from "lucide-react"
+import {
+ SidebarGroup,
+ SidebarGroupContent,
+ SidebarMenu,
+ SidebarMenuButton,
+ SidebarMenuItem,
+} from "@/components/ui/sidebar"
+import {setPage} from "@/models/appSlice.ts";
+import {useAppDispatch} from "@/hooks.ts";
+
+export function NavMain() {
+ const dispatch = useAppDispatch()
+
+ return (
+ <SidebarGroup>
+ <SidebarGroupContent className="flex flex-col gap-2">
+ <SidebarMenu>
+
+ <SidebarMenuItem key="Surveys"
+ onClick={() => dispatch(setPage("offerwall"))}
+ >
+ <SidebarMenuButton tooltip="Surveys">
+ <NotebookText/>
+ <span>Surveys</span>
+ </SidebarMenuButton>
+ </SidebarMenuItem>
+
+
+ <SidebarMenuItem key="Questions"
+ onClick={() => dispatch(setPage("questions"))}
+ >
+ <SidebarMenuButton tooltip="Questions">
+ <ListIcon/>
+ <span>Questions</span>
+ </SidebarMenuButton>
+ </SidebarMenuItem>
+
+ <SidebarMenuItem key="Community">
+ <SidebarMenuButton tooltip="Community">
+ <Users/>
+ <span>Community</span>
+ </SidebarMenuButton>
+ </SidebarMenuItem>
+
+ </SidebarMenu>
+ </SidebarGroupContent>
+ </SidebarGroup>
+ )
+}