29 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-10-21 13:57:45 -06:00
import Logo from "@/assets/logo.svg"
2024-10-23 12:05:43 +01:00
import { ThemeSwitcher } from "@/components/ui/theme-switcher"
2024-10-21 13:57:45 -06:00
import { User } from "@/lib/types"
2024-04-16 16:25:21 -04:00
import Image from "next/image"
import Link from "next/link"
2024-04-18 15:32:27 -04:00
import UserButton from "../../ui/userButton"
2024-10-21 13:57:45 -06:00
import DashboardNavbarSearch from "./search"
2024-04-16 16:25:21 -04:00
2024-04-18 15:25:20 -04:00
export default function DashboardNavbar({ userData }: { userData: User }) {
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-10-23 12:05:43 +01:00
<ThemeSwitcher />
2024-04-18 15:32:27 -04:00
<UserButton userData={userData} />
2024-04-16 16:25:21 -04:00
</div>
</div>
)
}