diff --git a/app/layout.tsx b/app/layout.tsx index 271723fc..5c386c7f 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -2,8 +2,8 @@ import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; import { headers } from "next/headers"; -import { getServerSession } from "next-auth/next"; -import { authOptions } from "@/app/api/auth/[...nextauth]/route"; +import { getServerSession } from "next-auth"; +import { authOptions } from "./api/auth/[...nextauth]/route"; import { Providers } from "@/components/providers"; import { LayoutWrapper } from "@/components/layout/layout-wrapper"; import { Navbar } from "@/components/navbar"; @@ -33,11 +33,15 @@ export default async function RootLayout({ enableSystem disableTransitionOnChange > -
- - {children} -
- + + +
+ + {children} +
+ +
+
diff --git a/components/navbar.tsx b/components/navbar.tsx new file mode 100644 index 00000000..df935843 --- /dev/null +++ b/components/navbar.tsx @@ -0,0 +1,47 @@ +"use client"; + +import Link from "next/link"; +import { usePathname } from "next/navigation"; +import { cn } from "@/lib/utils"; + +const routes = [ + { + label: "Dashboard", + href: "/", + }, + { + label: "Flow", + href: "/flow", + }, + { + label: "CRM", + href: "/crm", + }, + { + label: "Management", + href: "/management", + }, +]; + +export function Navbar() { + const pathname = usePathname(); + + return ( + + ); +} \ No newline at end of file