forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSidebar.tsx
More file actions
664 lines (627 loc) · 25.2 KB
/
Copy pathSidebar.tsx
File metadata and controls
664 lines (627 loc) · 25.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
'use client';
import { useState, useEffect, useCallback, useRef } from 'react';
import Image from 'next/image';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { motion, AnimatePresence } from 'framer-motion';
import {
GanttChartSquare,
MessageCircle,
LayoutGrid,
ListChecks,
CalendarDays,
Brain,
LogOut,
Menu,
X,
PanelLeftClose,
PanelLeft,
User,
Puzzle,
Code,
Settings,
Bell,
Mic,
MessageSquare,
Smartphone,
} from 'lucide-react';
// Apple logo SVG component
function AppleLogo({ className }: { className?: string }) {
return (
<svg className={className} viewBox="0 0 24 24" fill="currentColor">
<path d="M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z" />
</svg>
);
}
// Discord icon SVG component
function DiscordIcon({ className }: { className?: string }) {
return (
<svg className={className} viewBox="0 0 24 24" fill="currentColor">
<path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z" />
</svg>
);
}
import { useAuth } from '@/components/auth/AuthProvider';
import { useNotificationContext } from '@/components/notifications/NotificationContext';
import { useRecordingContext } from '@/components/recording/RecordingContext';
import { cn } from '@/lib/utils';
import { RECORDING_ENABLED } from '@/lib/featureFlags';
// Hook to detect if we're on desktop
function useIsDesktop() {
const [isDesktop, setIsDesktop] = useState(false);
useEffect(() => {
const checkIsDesktop = () => setIsDesktop(window.innerWidth >= 1024);
checkIsDesktop();
window.addEventListener('resize', checkIsDesktop);
return () => window.removeEventListener('resize', checkIsDesktop);
}, []);
return isDesktop;
}
interface NavItem {
label: string;
href: string;
icon: React.ReactNode;
}
const navItems: NavItem[] = [
{
label: 'Conversations',
href: '/conversations',
icon: <GanttChartSquare className="w-5 h-5" />,
},
{
label: 'Record',
href: '/record',
icon: <Mic className="w-5 h-5" />,
},
{
label: 'Recaps',
href: '/recaps',
icon: <CalendarDays className="w-5 h-5" />,
},
{
label: 'Chat',
href: '/chat',
icon: <MessageCircle className="w-5 h-5" />,
},
{
label: 'My Apps',
href: '/my-apps',
icon: <LayoutGrid className="w-5 h-5" />,
},
{
label: 'Tasks',
href: '/tasks',
icon: <ListChecks className="w-5 h-5" />,
},
{
label: 'Memories',
href: '/memories',
icon: <Brain className="w-5 h-5" />,
},
];
// Settings menu items for user dropdown
const settingsMenuItems = [
{ id: 'profile', label: 'Profile', icon: User },
{ id: 'integrations', label: 'Integrations', icon: Puzzle },
{ id: 'developer', label: 'Developer', icon: Code },
{ id: 'account', label: 'Account', icon: Settings },
];
interface SidebarProps {
isOpen: boolean;
onClose: () => void;
}
export function Sidebar({
isOpen,
onClose,
}: SidebarProps) {
const pathname = usePathname();
const { user, signOut } = useAuth();
const { toggleNotificationCenter, unreadCount } = useNotificationContext();
const { state: recordingState } = useRecordingContext();
const isRecording = recordingState === 'recording' || recordingState === 'paused';
const [showUserMenu, setShowUserMenu] = useState(false);
const [isExpanded, setIsExpanded] = useState(false);
const [isHeaderHovered, setIsHeaderHovered] = useState(false);
const [isTemporaryExpand, setIsTemporaryExpand] = useState(false);
const [mobileAppDismissed, setMobileAppDismissed] = useState(false);
const isDesktop = useIsDesktop();
const sidebarRef = useRef<HTMLElement>(null);
const userMenuRef = useRef<HTMLDivElement>(null);
// Load expanded state from localStorage on mount
useEffect(() => {
const saved = localStorage.getItem('sidebar-expanded');
if (saved === 'true') {
setIsExpanded(true);
}
if (localStorage.getItem('mobile-app-banner-dismissed') === 'true') {
setMobileAppDismissed(true);
}
}, []);
// Click outside handler to close menu and collapse if temporary
useEffect(() => {
if (!showUserMenu) return;
const handleClickOutside = (e: MouseEvent) => {
if (userMenuRef.current && !userMenuRef.current.contains(e.target as Node)) {
setShowUserMenu(false);
if (isTemporaryExpand) {
setIsExpanded(false);
setIsTemporaryExpand(false);
}
}
};
// Delay adding listener to avoid immediate trigger
const timer = setTimeout(() => {
document.addEventListener('mousedown', handleClickOutside);
}, 0);
return () => {
clearTimeout(timer);
document.removeEventListener('mousedown', handleClickOutside);
};
}, [showUserMenu, isTemporaryExpand]);
// Toggle expand/collapse
const handleToggleExpand = useCallback(() => {
setIsExpanded((prev) => {
const newValue = !prev;
localStorage.setItem('sidebar-expanded', String(newValue));
if (!newValue) {
setShowUserMenu(false);
}
return newValue;
});
setIsTemporaryExpand(false); // Manual toggle makes it permanent
}, []);
const handleSignOut = useCallback(async () => {
await signOut();
onClose();
}, [signOut, onClose]);
// Collapsed width (icon only) vs expanded width
const sidebarWidth = isExpanded ? 280 : 72;
// On mobile, sidebar should always show text (behave as expanded)
const showText = !isDesktop || isExpanded;
return (
<>
{/* Mobile overlay */}
<AnimatePresence>
{isOpen && !isDesktop && (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.2 }}
className="fixed inset-0 bg-black/50 z-40 lg:hidden"
onClick={onClose}
/>
)}
</AnimatePresence>
{/* Sidebar - Mobile: slide in/out, Desktop: CSS transition for width */}
<aside
ref={sidebarRef}
onMouseEnter={() => isDesktop && setIsHeaderHovered(true)}
onMouseLeave={() => isDesktop && setIsHeaderHovered(false)}
style={{
// Mobile: slide in/out
transform: !isDesktop ? `translateX(${isOpen ? 0 : -280}px)` : undefined,
// Desktop: set width directly
width: isDesktop ? sidebarWidth : 280,
willChange: !isDesktop ? 'transform' : undefined,
}}
className={cn(
'bg-bg-secondary border-r border-white/[0.04]',
'flex flex-col flex-shrink-0',
// Mobile: fixed overlay with slide transition
'fixed top-0 left-0 bottom-0 z-50',
'transition-transform duration-150 ease-out lg:transition-none',
// Desktop: relative in flow
'lg:relative lg:z-auto'
)}
>
{/* Header */}
<div className="border-b border-white/[0.04]">
{/* Logo row - fixed layout */}
<div
className={cn(
'flex items-center pt-7 px-4 pb-4',
showText ? 'justify-between' : 'justify-center'
)}
>
<Link
href="/conversations"
className="flex items-center gap-2"
>
<Image
src="/omi-white.webp"
alt="Omi"
width={showText ? 60 : 32}
height={showText ? 24 : 13}
className="object-contain"
/>
{showText && (
<span className="text-[10px] bg-purple-primary/20 text-purple-primary px-1.5 py-0.5 rounded-full font-medium">
Beta
</span>
)}
</Link>
{/* Mobile close button */}
{!isDesktop && (
<button
onClick={onClose}
className="p-2 rounded-lg hover:bg-bg-tertiary transition-colors"
>
<X className="w-5 h-5 text-text-secondary" />
</button>
)}
</div>
{/* Toggle button row (desktop only) - appears on sidebar hover */}
{isDesktop && (
<div
className={cn(
'px-4 pb-3',
showText ? 'flex justify-end' : 'flex justify-center'
)}
>
<button
onClick={handleToggleExpand}
className={cn(
'p-2 rounded-lg transition-all duration-200',
'text-text-tertiary hover:bg-bg-tertiary hover:text-text-secondary',
isHeaderHovered ? 'opacity-100' : 'opacity-0'
)}
title={isExpanded ? 'Collapse sidebar' : 'Expand sidebar'}
>
{isExpanded ? (
<PanelLeftClose className="w-4 h-4" />
) : (
<PanelLeft className="w-4 h-4" />
)}
</button>
</div>
)}
{/* Notification bell */}
<div
className={cn(
'px-4 pb-3',
showText ? 'flex justify-start' : 'flex justify-center'
)}
>
<button
onClick={toggleNotificationCenter}
className={cn(
'flex items-center rounded-lg transition-colors',
'text-text-tertiary hover:bg-bg-tertiary hover:text-text-secondary',
showText ? 'px-2 py-2' : 'p-2'
)}
title="Notifications"
>
<div className="relative">
<Bell className="w-5 h-5" />
{unreadCount > 0 && (
<span
className={cn(
'absolute -top-2.5 -right-2.5',
'min-w-[18px] h-[18px] px-1',
'flex items-center justify-center',
'bg-red-500 text-white text-[10px] font-bold',
'rounded-full'
)}
>
{unreadCount > 99 ? '99+' : unreadCount}
</span>
)}
</div>
{showText && (
<span className="ml-3 text-sm text-text-secondary">
Notifications
</span>
)}
</button>
</div>
</div>
{/* Scrollable middle section */}
<div className="flex-1 min-h-0 overflow-y-auto">
<nav className={cn(
'py-2 space-y-1',
showText ? 'px-3' : 'px-2'
)}>
{navItems.map((item) => {
const isActive =
pathname === item.href ||
(item.href === '/conversations' &&
pathname?.startsWith('/conversations'));
const showRecordingBadge = item.href === '/record' && isRecording;
const showComingSoon = item.href === '/record' && !RECORDING_ENABLED;
return (
<Link
key={item.href}
href={item.href}
onClick={() => {
if (!isDesktop) onClose();
}}
title={!showText ? (showComingSoon ? `${item.label} (Coming Soon)` : item.label) : undefined}
className={cn(
'flex items-center rounded-xl border-l-[3px]',
'transition-colors duration-150',
showText ? 'gap-3 px-4 py-3' : 'justify-center p-3',
isActive
? 'bg-purple-primary/10 text-purple-primary border-l-[3px] border-purple-primary'
: 'text-text-secondary hover:bg-bg-tertiary hover:text-text-primary border-transparent',
showComingSoon && 'opacity-60'
)}
>
<span className="flex-shrink-0 relative">
{item.icon}
{/* Recording badge - pulsing red dot */}
{showRecordingBadge && (
<span className="absolute -top-1 -right-1 flex h-3 w-3">
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75" />
<span className="relative inline-flex rounded-full h-3 w-3 bg-red-500" />
</span>
)}
</span>
{showText && (
<span className="font-medium flex items-center gap-2">
{item.label}
{showComingSoon && (
<span className="text-[10px] text-text-quaternary bg-bg-quaternary px-1.5 py-0.5 rounded">
Soon
</span>
)}
</span>
)}
</Link>
);
})}
</nav>
</div>
{/* Platform-aware app download banner */}
{!mobileAppDismissed && (() => {
const isMac = typeof navigator !== 'undefined' && /Mac/.test(navigator.userAgent);
const bannerHref = isMac ? 'https://macos.omi.me/' : 'https://onelink.to/rbsrxc';
const bannerTitle = isMac ? 'Omi is 10X better on macOS' : 'Take Omi with you';
const bannerSubtitle = isMac ? 'Try Omi on macOS' : 'Try Omi on your phone';
return (
<div className={cn('px-3 pt-2 pb-2', !showText && 'px-2')}>
<a
href={bannerHref}
target="_blank"
rel="noopener noreferrer"
className={cn(
'relative flex items-center gap-3 rounded-xl bg-bg-tertiary/50 transition-colors hover:bg-bg-tertiary',
showText ? 'p-3 pr-9' : 'justify-center p-3'
)}
>
<div className="flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full bg-white/[0.08]">
{isMac ? <AppleLogo className="w-4 h-4 text-text-tertiary" /> : <Smartphone className="w-4 h-4 text-text-tertiary" />}
</div>
{showText && (
<div className="min-w-0">
<p className="text-sm font-medium text-text-primary">{bannerTitle}</p>
<p className="text-xs text-text-quaternary">{bannerSubtitle}</p>
</div>
)}
{showText && (
<button
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
setMobileAppDismissed(true);
localStorage.setItem('mobile-app-banner-dismissed', 'true');
}}
className="absolute right-2 top-1/2 -translate-y-1/2 rounded-full p-1 text-text-quaternary transition-colors hover:bg-white/[0.08] hover:text-text-tertiary"
aria-label="Dismiss"
>
<X className="h-3.5 w-3.5" />
</button>
)}
</a>
</div>
);
})()}
{/* Feedback & Discord links */}
<div className={cn('pb-2', showText ? 'px-3' : 'px-2')}>
<a
href="https://feedback.omi.me"
target="_blank"
rel="noopener noreferrer"
title={!showText ? 'Feedback' : undefined}
className={cn(
'flex items-center rounded-lg transition-colors',
'text-text-tertiary hover:text-purple-primary hover:bg-bg-tertiary/50',
showText ? 'gap-3 px-3 py-2' : 'justify-center p-2'
)}
>
<MessageSquare className="w-4 h-4 flex-shrink-0" />
{showText && <span className="text-sm">Feedback</span>}
</a>
<a
href="http://discord.omi.me"
target="_blank"
rel="noopener noreferrer"
title={!showText ? 'Discord' : undefined}
className={cn(
'flex items-center rounded-lg transition-colors',
'text-text-tertiary hover:text-purple-primary hover:bg-bg-tertiary/50',
showText ? 'gap-3 px-3 py-2' : 'justify-center p-2'
)}
>
<DiscordIcon className="w-4 h-4 flex-shrink-0" />
{showText && <span className="text-sm">Discord</span>}
</a>
</div>
{/* Footer - User Section with Settings Menu */}
<div className="border-t border-white/[0.04]">
<div className="bg-bg-primary/30">
<div className="relative" ref={userMenuRef}>
<button
onClick={() => {
if (isExpanded) {
setShowUserMenu(!showUserMenu);
} else {
// In collapsed mode, temporarily expand sidebar and show user menu
setIsExpanded(true);
setIsTemporaryExpand(true);
setShowUserMenu(true);
}
}}
className={cn(
'w-full flex items-center',
'hover:bg-bg-tertiary/50 transition-colors',
showText ? 'gap-3 p-4' : 'justify-center p-3'
)}
title={!showText ? 'Settings' : undefined}
>
{/* Avatar */}
<div className="w-9 h-9 rounded-full overflow-hidden bg-bg-tertiary flex-shrink-0 ring-2 ring-bg-tertiary">
{user?.photoURL ? (
<Image
src={user.photoURL}
alt={user.displayName || 'User'}
width={36}
height={36}
className="object-cover"
/>
) : (
<div className="w-full h-full flex items-center justify-center text-text-tertiary text-sm font-medium">
{user?.displayName?.charAt(0) || 'U'}
</div>
)}
</div>
{showText && (
<>
{/* Name & email */}
<div className="flex-1 min-w-0 text-left">
<p className="text-sm font-medium text-text-primary truncate">
{user?.displayName || 'User'}
</p>
<p className="text-xs text-text-quaternary truncate">
{user?.email}
</p>
</div>
{/* Dropdown indicator */}
<svg
className={cn(
'w-4 h-4 text-text-quaternary transition-transform',
showUserMenu && 'rotate-180'
)}
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M5 15l7-7 7 7"
/>
</svg>
</>
)}
</button>
{/* User menu dropdown with settings */}
<AnimatePresence>
{showUserMenu && showText && (
<motion.div
initial={{ opacity: 0, y: 8, scale: 0.96 }}
animate={{ opacity: 1, y: 0, scale: 1 }}
exit={{ opacity: 0, y: 8, scale: 0.96 }}
transition={{ duration: 0.15 }}
className={cn(
'absolute bottom-full left-2 right-2 mb-3',
'bg-[#1a1a1f]/95 backdrop-blur-xl',
'rounded-2xl overflow-hidden',
'shadow-[0_0_0_1px_rgba(255,255,255,0.06),0_-20px_40px_-10px_rgba(139,92,246,0.15),0_10px_30px_-5px_rgba(0,0,0,0.5)]'
)}
>
{/* User info header */}
<div className="p-4 border-b border-white/[0.04]">
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-xl bg-gradient-to-br from-purple-500/20 to-purple-600/10 flex items-center justify-center ring-1 ring-white/[0.08] overflow-hidden">
{user?.photoURL ? (
<Image
src={user.photoURL}
alt={user.displayName || 'User'}
width={40}
height={40}
className="object-cover"
/>
) : (
<span className="text-white/70 text-sm font-medium">
{user?.displayName?.charAt(0) || 'U'}
</span>
)}
</div>
<div className="flex-1 min-w-0">
<p className="text-sm font-medium text-white/90 truncate">
{user?.displayName || 'User'}
</p>
<p className="text-xs text-white/40 truncate">
{user?.email}
</p>
</div>
</div>
</div>
{/* Settings list - single column */}
<div className="py-1.5">
{settingsMenuItems.map((item) => (
<Link
key={item.id}
href={`/settings?section=${item.id}`}
onClick={() => {
setShowUserMenu(false);
if (isTemporaryExpand) {
setIsExpanded(false);
setIsTemporaryExpand(false);
}
if (!isDesktop) onClose();
}}
className={cn(
'group flex items-center gap-3 px-4 py-2.5',
'transition-all duration-150',
'hover:bg-white/[0.04]'
)}
>
<item.icon className="w-4 h-4 text-white/40 group-hover:text-purple-400 transition-colors flex-shrink-0" />
<span className="text-sm text-white/70 group-hover:text-white/90">
{item.label}
</span>
</Link>
))}
</div>
{/* Sign out - separated */}
<div className="p-2 pt-0 border-t border-white/[0.04] mt-1">
<button
onClick={handleSignOut}
className={cn(
'w-full flex items-center gap-2.5 p-2.5 rounded-xl',
'text-red-400/70 hover:text-red-400',
'hover:bg-red-500/[0.08] transition-all'
)}
>
<LogOut className="w-4 h-4" />
<span className="text-sm">Sign Out</span>
</button>
</div>
</motion.div>
)}
</AnimatePresence>
</div>
</div>
</div>
</aside>
</>
);
}
// Mobile menu button component
export function MobileMenuButton({ onClick }: { onClick: () => void }) {
return (
<button
onClick={onClick}
className={cn(
'lg:hidden p-2 rounded-lg',
'hover:bg-bg-tertiary transition-colors',
'focus:outline-none focus-visible:ring-2 focus-visible:ring-purple-primary/50'
)}
>
<Menu className="w-6 h-6 text-text-secondary" />
</button>
);
}