From 6a6061b8e255a68a7bfbe5b664c32bfd0a524ed0 Mon Sep 17 00:00:00 2001 From: soufiane Date: Mon, 8 Dec 2025 16:37:46 +0100 Subject: [PATCH] fix: remove unused SharedSidebar component to reduce duplication MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- components/shared/SharedSidebar.tsx | 102 ---------------------------- 1 file changed, 102 deletions(-) delete mode 100644 components/shared/SharedSidebar.tsx 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 */} - - - ); -}