diff --git a/src/app/(dashboard)/layout.tsx b/src/app/(dashboard)/layout.tsx
index ec177e7..aa2fb63 100644
--- a/src/app/(dashboard)/layout.tsx
+++ b/src/app/(dashboard)/layout.tsx
@@ -3,14 +3,7 @@ import {
SidebarProvider,
SidebarTrigger,
} from "@/components/ui/sidebar";
-import {
- Breadcrumb,
- BreadcrumbItem,
- BreadcrumbLink,
- BreadcrumbList,
- BreadcrumbPage,
- BreadcrumbSeparator,
-} from "@/components/ui/breadcrumb";
+import { Navbar } from "@/components/navbar";
import { AppSidebar } from "@/components/app-sidebar";
import { Separator } from "@/components/ui/separator";
@@ -27,19 +20,7 @@ export default function DashboardLayout({ children }: DashboardLayoutProps) {
-
-
-
-
- Building Your Application
-
-
-
-
- Data Fetching
-
-
-
+
{children}
diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx
new file mode 100644
index 0000000..d32780e
--- /dev/null
+++ b/src/components/navbar.tsx
@@ -0,0 +1,62 @@
+"use client";
+
+import {
+ Breadcrumb,
+ BreadcrumbItem,
+ BreadcrumbLink,
+ BreadcrumbList,
+ BreadcrumbPage,
+ BreadcrumbSeparator,
+} from "./ui/breadcrumb";
+import React from "react";
+import { Home } from "lucide-react";
+import { usePathname } from "next/navigation";
+
+export const Navbar = () => {
+ const pathname = usePathname();
+ const pathSegments = pathname.split("/").filter(Boolean); // Filter out empty strings
+
+ return (
+
+
+ {/* If pathname is "/", display the Home icon inside BreadcrumbPage */}
+ {pathSegments.length === 0 ? (
+
+
+
+ Home
+
+
+ ) : (
+ <>
+ {/* Always show Home as the first BreadcrumbLink */}
+
+
+
+ Home
+
+
+
+
+ {pathSegments.map((item, index) => (
+
+
+ {index === pathSegments.length - 1 ? (
+ {item}
+ ) : (
+
+ {item}
+
+ )}
+
+ {index !== pathSegments.length - 1 && }
+
+ ))}
+ >
+ )}
+
+
+ );
+};