diff --git a/app/client-v2/apps/goat/app/(dashboard)/DashboardSidebar.tsx b/app/client-v2/apps/goat/app/(dashboard)/DashboardSidebar.tsx index 1dcf72834..090efbfe1 100644 --- a/app/client-v2/apps/goat/app/(dashboard)/DashboardSidebar.tsx +++ b/app/client-v2/apps/goat/app/(dashboard)/DashboardSidebar.tsx @@ -1,14 +1,10 @@ "use client"; import { makeStyles } from "@/lib/theme"; -import { Text } from "@/lib/theme"; -import { useTheme } from "@/lib/theme"; import { Fade, List, ListItem, ListItemButton, ListItemIcon } from "@mui/material"; -import { useRouter } from "next/navigation"; -import { usePathname } from "next/navigation"; import { useState } from "react"; -import { Icon } from "@p4b/ui/components/theme"; +import { Icon, Text, useTheme } from "@p4b/ui/components/theme"; import type { IconId } from "@p4b/ui/components/theme"; export type DashboardSidebarProps = { @@ -18,35 +14,47 @@ export type DashboardSidebarProps = { children: React.ReactNode; }; +/** + * A functional component that renders a dashboard sidebar. + * @param {DashboardSidebarProps} props - The props object containing the items and children. + * @returns The rendered dashboard sidebar component. + */ + export function DashboardSidebar(props: DashboardSidebarProps) { const { items, children } = props; - const router = useRouter(); + + // styling const { classes, cx } = useStyles(props)(); const theme = useTheme(); + + // Component States const [hover, setHover] = useState(false); - const pathname = usePathname(); + const [active, setActive] = useState(items[0].placeholder); + + // functions const handleHover = () => { setHover((currHover) => !currHover); }; + return ( <>