@@ -19,8 +19,6 @@ import {
1919 Target ,
2020 Bell ,
2121 HeartPulse ,
22- Moon ,
23- Sun ,
2422 TerminalSquare ,
2523 ShieldCheck ,
2624 Package ,
@@ -29,10 +27,8 @@ import {
2927 ScanSearch ,
3028 AppWindow ,
3129} from 'lucide-react'
32- import { Button } from '@/components/ui/button'
3330import { ScrollArea } from '@/components/ui/scroll-area'
3431import { Separator } from '@/components/ui/separator'
35- import { useTheme } from '@/contexts/ThemeContext'
3632import {
3733 Tooltip ,
3834 TooltipContent ,
@@ -109,17 +105,12 @@ export const navigation = [
109105
110106export default function Sidebar ( { isCollapsed, setIsCollapsed : _setIsCollapsed , onNavigate } : SidebarProps ) {
111107 const location = useLocation ( )
112- const { theme, setTheme } = useTheme ( )
113108
114109 // Persist collapsed state to localStorage
115110 useEffect ( ( ) => {
116111 localStorage . setItem ( 'sidebar-collapsed' , String ( isCollapsed ) )
117112 } , [ isCollapsed ] )
118113
119- const toggleTheme = ( ) => {
120- setTheme ( theme === "dark" ? "light" : "dark" )
121- }
122-
123114 return (
124115 < div
125116 className = { cn (
@@ -209,30 +200,21 @@ export default function Sidebar({ isCollapsed, setIsCollapsed: _setIsCollapsed,
209200 </ div >
210201 </ ScrollArea >
211202
212- { /* Footer with Theme Toggle and Copyright */ }
203+ { /* Footer with Copyright */ }
213204 < div className = "px-3 py-2 shrink-0" >
214205 < Separator className = "mb-3 bg-sidebar-border" />
215206 < div className = { cn ( "flex items-center" , isCollapsed ? "justify-center" : "justify-between gap-2" ) } >
216- < Button
217- variant = "ghost"
218- size = { isCollapsed ? "icon" : "sm" }
219- onClick = { toggleTheme }
220- className = { cn (
221- "text-muted-foreground hover:bg-sidebar-accent/50 hover:text-sidebar-foreground shrink-0" ,
222- isCollapsed ? "h-8 w-8" : "gap-2 px-2"
223- ) }
224- >
225- { theme === "dark" ? (
226- < Sun className = "h-4 w-4 shrink-0" />
227- ) : (
228- < Moon className = "h-4 w-4 shrink-0" />
229- ) }
230- { ! isCollapsed && < span className = "truncate" > Toggle Theme</ span > }
231- </ Button >
232207 { ! isCollapsed && (
233- < p className = "text-[10px] text-muted-foreground text-right leading-tight shrink-0" >
234- © { new Date ( ) . getFullYear ( ) } HHF Technology< br />
235- Powered by CrowdSec
208+ < p className = "text-[10px] text-muted-foreground text-left leading-tight shrink-0" >
209+ © { new Date ( ) . getFullYear ( ) } Crowdsec Manager by { ' ' }
210+ < a
211+ href = "https://forum.hhf.technology"
212+ target = "_blank"
213+ rel = "noopener noreferrer"
214+ className = "text-muted-foreground hover:text-foreground transition-colors"
215+ >
216+ HHF Technology
217+ </ a >
236218 </ p >
237219 ) }
238220 </ div >
0 commit comments