Dashboard
+
+ )
+}
diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx
index ba458b4..a6354c1 100644
--- a/components/Sidebar.tsx
+++ b/components/Sidebar.tsx
@@ -1,6 +1,7 @@
"use client"
import type React from "react"
+import Breadcrumbs from "./Breadcrumbs"
import { useState } from "react"
import Link from "next/link"
@@ -25,9 +26,10 @@ interface SidebarProps {
children: React.ReactNode
username: string
fullName: string
+ breadcrumbPath?: string[]
}
-export default function Sidebar({ children, username, fullName }: SidebarProps) {
+export default function Sidebar({ children, username, fullName, breadcrumbPath }: SidebarProps) {
const router = useRouter()
const [isProfileOpen, setIsProfileOpen] = useState(false)
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false)
@@ -176,7 +178,10 @@ export default function Sidebar({ children, username, fullName }: SidebarProps)
{/* Main content */}
-
+
+ -
+ {breadcrumbPath.map((item, index) => (
+
- + {index < breadcrumbPath.length - 1 ? ( + {item} + ) : ( + item + )} + + ))} +