forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHeader.tsx
More file actions
52 lines (49 loc) · 1.81 KB
/
Copy pathHeader.tsx
File metadata and controls
52 lines (49 loc) · 1.81 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
/**
* @fileoverview Header Component for OMI Personas
* @description Renders the application header with logo and CTA button
* @author HarshithSunku
* @license MIT
*/
import Link from 'next/link';
// Define props interface
interface HeaderProps {
uid: string | null;
}
/**
* Header Component
*
* @component
* @description Renders the main navigation header with OMI logo and call-to-action button
* @param {HeaderProps} props - Component props
* @param {string | null} props.uid - The current user ID, or null if not available.
* @returns {JSX.Element} Rendered Header component
*/
export const Header = ({ uid }: HeaderProps) => {
const addToolsUrl = uid
? `https://veyrax.com/user/omi/auth?omi_user_id=${encodeURIComponent(uid)}`
: '#';
return (
<div className="border-b border-zinc-800 p-4">
{/* Keep items justified between on all screen sizes */}
<div className="mx-auto flex max-w-3xl items-center justify-between">
<Link href="https://omi.me" target="_blank">
<img src="/omilogo.png" alt="Logo" className="h-6" />
</Link>
{/* Ensure right-side items stay together */}
<div className="flex items-center gap-4">
{' '}
{/* Keep gap for items within this group if needed in future */}
{/* Existing "Train AI" link - adjust padding/text size for mobile */}
<Link
href="https://www.omi.me/pages/product?ref=personas"
target="_blank"
className="flex items-center whitespace-nowrap rounded-full bg-white px-3 py-1.5 text-black hover:bg-gray-200 md:px-4 md:py-2"
>
<span className="mr-1 text-xs md:text-sm">Train AI on your real life</span>
<span className="text-base md:text-lg">↗</span>
</Link>
</div>
</div>
</div>
);
};