28 lines
1.0 KiB
TypeScript
Raw Normal View History

2024-04-16 16:25:21 -04:00
import { UserButton } from "@clerk/nextjs"
import { dark } from "@clerk/themes"
import Image from "next/image"
import Link from "next/link"
import Logo from "@/assets/logo.svg"
import DashboardNavbarSearch from "./search"
2024-04-18 15:07:15 -04:00
import DashboardUserButton from "./userButton"
2024-04-16 16:25:21 -04:00
2024-04-18 15:07:15 -04:00
export default function DashboardNavbar({ userId }: { userId: string }) {
2024-04-16 16:25:21 -04:00
return (
<div className="h-16 px-4 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">Sandbox</div>
</div>
<div className="flex items-center space-x-4">
<DashboardNavbarSearch />
2024-04-18 15:07:15 -04:00
<DashboardUserButton userId={userId} />
2024-04-16 16:25:21 -04:00
</div>
</div>
)
}