"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, useAppSelector} from "@/hooks.ts"; import {useSelector} from "react-redux"; import {selectQuestions} from "@/models/questionSlice.ts"; import {Badge} from "@/components/ui/badge" export function NavMain() { const dispatch = useAppDispatch() const app = useAppSelector(state => state.app) const questions = useSelector(selectQuestions) return ( dispatch(setPage("offerwall"))} > Surveys {(app.availability_count ?? 0).toLocaleString()} dispatch(setPage("questions"))} > Questions {questions.length.toLocaleString()} Community ) }