22
33import React , { useEffect , useState } from 'react' ;
44import { usePathname , useRouter } from 'next/navigation' ;
5- import { useProjectStore } from '@/stores' ;
65import {
76 Sidebar ,
87 SidebarContent ,
@@ -12,13 +11,16 @@ import {
1211 SidebarMenuItem ,
1312 SidebarTrigger ,
1413} from '@/components/ui/sidebar' ;
15- import { AppWindowIcon , FileTextIcon , LayoutDashboardIcon } from 'lucide-react' ;
14+ import { Home , Package , SquareKanban } from 'lucide-react' ;
1615
17- interface NavigationSidebarProps {
18- // No props needed - using built-in sidebar state
16+ interface SidebarItem {
17+ key : string ;
18+ label : string ;
19+ icon : React . ReactNode ;
20+ path : string ;
1921}
2022
21- export function NavigationSidebar ( _props : NavigationSidebarProps ) {
23+ export function NavigationSidebar ( ) {
2224 const router = useRouter ( ) ;
2325 const pathname = usePathname ( ) ;
2426 const [ mounted , setMounted ] = useState ( false ) ;
@@ -47,7 +49,7 @@ export function NavigationSidebar(_props: NavigationSidebarProps) {
4749 {
4850 key : 'projects' ,
4951 label : 'Projects' ,
50- icon : < AppWindowIcon size = { 16 } /> ,
52+ icon : < Package size = { 16 } /> ,
5153 } ,
5254 ] ;
5355 }
@@ -58,23 +60,26 @@ export function NavigationSidebar(_props: NavigationSidebarProps) {
5860 {
5961 key : 'projects' ,
6062 label : 'Projects' ,
61- icon : < AppWindowIcon size = { 16 } /> ,
63+ icon : < Package size = { 16 } /> ,
6264 } ,
6365 ] ;
6466 }
6567
68+ if ( pathname . match ( / ^ \/ p r o j e c t s \/ \w + \/ d e v l o g s / ) ) {
69+ }
70+
6671 // Project detail page (/projects/[id])
6772 if ( pathParts . length === 2 && pathParts [ 0 ] === 'projects' ) {
6873 return [
6974 {
7075 key : 'overview' ,
7176 label : 'Overview' ,
72- icon : < LayoutDashboardIcon size = { 16 } /> ,
77+ icon : < Home size = { 16 } /> ,
7378 } ,
7479 {
7580 key : 'list' ,
7681 label : 'Devlogs' ,
77- icon : < FileTextIcon size = { 16 } /> ,
82+ icon : < SquareKanban size = { 16 } /> ,
7883 } ,
7984 ] ;
8085 }
@@ -85,12 +90,12 @@ export function NavigationSidebar(_props: NavigationSidebarProps) {
8590 {
8691 key : 'overview' ,
8792 label : 'Overview' ,
88- icon : < LayoutDashboardIcon size = { 16 } /> ,
93+ icon : < Home size = { 16 } /> ,
8994 } ,
9095 {
9196 key : 'list' ,
9297 label : 'Devlogs' ,
93- icon : < FileTextIcon size = { 16 } /> ,
98+ icon : < SquareKanban size = { 16 } /> ,
9499 } ,
95100 ] ;
96101 }
@@ -101,12 +106,12 @@ export function NavigationSidebar(_props: NavigationSidebarProps) {
101106 {
102107 key : 'overview' ,
103108 label : 'Overview' ,
104- icon : < LayoutDashboardIcon size = { 16 } /> ,
109+ icon : < Home size = { 16 } /> ,
105110 } ,
106111 {
107112 key : 'list' ,
108113 label : 'Devlogs' ,
109- icon : < FileTextIcon size = { 16 } /> ,
114+ icon : < SquareKanban size = { 16 } /> ,
110115 } ,
111116 ] ;
112117 }
@@ -116,12 +121,12 @@ export function NavigationSidebar(_props: NavigationSidebarProps) {
116121 {
117122 key : 'overview' ,
118123 label : 'Overview' ,
119- icon : < LayoutDashboardIcon size = { 16 } /> ,
124+ icon : < Home size = { 16 } /> ,
120125 } ,
121126 {
122127 key : 'projects' ,
123128 label : 'Projects' ,
124- icon : < AppWindowIcon size = { 16 } /> ,
129+ icon : < Package size = { 16 } /> ,
125130 } ,
126131 ] ;
127132 } ;
0 commit comments