diff --git a/components/shared/SharedSidebar.tsx b/components/shared/SharedSidebar.tsx deleted file mode 100644 index 7acf3b7..0000000 --- a/components/shared/SharedSidebar.tsx +++ /dev/null @@ -1,102 +0,0 @@ -"use client"; - -import Link from "next/link"; -import { usePathname } from "next/navigation"; -import { Menu, X } from "lucide-react"; -import { useState } from "react"; -import Logo from "@/components/Logo"; - -export interface NavItem { - label: string; - href: string; - icon: React.ReactNode; - color: string; -} - -export interface SidebarProps { - navItems: NavItem[]; - title: string; - subtitle: string; - activeStyles: Record; -} - -export function SharedSidebar({ navItems, title, subtitle, activeStyles }: SidebarProps) { - const pathname = usePathname(); - const [isOpen, setIsOpen] = useState(false); - - const isActive = (href: string) => pathname === href; - - const getActiveStyles = (color: string) => { - return activeStyles[color] || activeStyles[Object.keys(activeStyles)[0]]; - }; - - return ( - <> - {/* Mobile menu button */} - - - {/* Overlay for mobile */} - {isOpen && ( -
setIsOpen(false)} - /> - )} - - {/* Sidebar */} - - - ); -}