-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.jsx
41 lines (37 loc) · 1.14 KB
/
header.jsx
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
"use client";
import { Bitcoin, Github, Leaf } from "lucide-react";
import { Button } from "./ui/button";
import Logo from "./logo";
import { useUserData } from "@/lib/store";
import { Avatar, AvatarImage } from "./ui/avatar";
function Header() {
// const isLoggedIn = useUserData((state) => state.isLogged);
const isLoggedIn = false;
return (
<header className="w-full z-[999] justify-between backdrop-blur-xl flex items-center top-0 left-0 right-0 sticky p-4 lg:pl-[4rem] lg:pr-[4rem]">
<Logo />
<div className="lg:flex hidden gap-4">
<Button variant="outlined" className="border-white flex gap-2 border">
<Github />
Contribute
</Button>
{isLoggedIn ? (
<>
<Avatar>
<AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
<AvatarFallback>CN</AvatarFallback>
</Avatar>
</>
) : (
<>
<Button className="flex gap-2 items-center">
Get Started
<Leaf />
</Button>
</>
)}
</div>
</header>
);
}
export default Header;