forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMarketplaceHeader.tsx
More file actions
60 lines (56 loc) · 1.89 KB
/
Copy pathMarketplaceHeader.tsx
File metadata and controls
60 lines (56 loc) · 1.89 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
'use client';
import Link from '@tschk/moonshine-next/link';
import Image from '@tschk/moonshine-next/image';
import { useAuth } from '@/components/auth/AuthProvider';
import { cn } from '@/lib/utils';
export function MarketplaceHeader() {
const { user, loading, openLoginPanel } = useAuth();
return (
<header className="fixed top-0 left-0 right-0 z-50 h-12 bg-[#0B0F17] border-b border-white/5">
<div className="container mx-auto h-full px-3 sm:px-6 md:px-8">
<div className="flex h-full items-center justify-between">
{/* Logo - links to main apps page */}
<Link href="/apps" className="flex items-center gap-2">
<Image
src="/omi-white.webp"
alt="Omi"
width={80}
height={32}
className="h-6 w-auto"
/>
</Link>
{/* Right side actions */}
<div className="flex items-center gap-3">
{loading ? (
<div className="h-8 w-20 animate-pulse rounded-full bg-white/10" />
) : user ? (
<>
<Link
href="/conversations"
className={cn(
'px-4 py-1.5 rounded-full text-sm font-medium',
'bg-text-primary text-bg-primary',
'hover:bg-text-primary/90 transition-colors',
)}
>
Dashboard
</Link>
</>
) : (
<button
onClick={openLoginPanel}
className={cn(
'px-4 py-1.5 rounded-full text-sm font-medium',
'bg-white text-gray-900',
'hover:bg-gray-100 transition-colors',
)}
>
Sign In
</button>
)}
</div>
</div>
</div>
</header>
);
}