34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
import Image from "next/image"
|
|
import Logo from "@/assets/logo.svg"
|
|
import { Pencil } from "lucide-react"
|
|
import { UserButton } from "@clerk/nextjs"
|
|
import Link from "next/link"
|
|
import { dark } from "@clerk/themes"
|
|
|
|
export default function Navbar() {
|
|
return (
|
|
<div className="h-14 px-2 w-full flex items-center justify-between border-b border-border">
|
|
<div className="flex items-center space-x-4">
|
|
<Link
|
|
href="/"
|
|
className="ring-offset-2 ring-offset-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none rounded-sm"
|
|
>
|
|
<Image src={Logo} alt="Logo" width={36} height={36} />
|
|
</Link>
|
|
<div className="text-sm font-medium flex items-center">
|
|
My React Project{" "}
|
|
<div className="h-7 w-7 ml-2 flex items-center justify-center transition-colors bg-transparent hover:bg-muted-foreground/25 cursor-pointer rounded-md">
|
|
<Pencil className="w-4 h-4" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<UserButton
|
|
appearance={{
|
|
baseTheme: dark,
|
|
}}
|
|
afterSignOutUrl="/"
|
|
/>
|
|
</div>
|
|
)
|
|
}
|