34 lines
1.2 KiB
TypeScript
Raw Permalink 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 (
2024-11-11 22:02:34 +01:00
<div className=" py-2 px-4 w-full flex items-center justify-between border-b border-border">
2025-01-08 00:16:29 +01:00
<div className="flex items-center space-x-2">
2024-04-16 16:25:21 -04:00
<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>
2025-01-08 00:16:29 +01:00
<h1 className="text-xl">
<span className="font-semibold">Sandbox</span>{" "}
<span className="text-xs font-medium text-muted-foreground">
by gitwit
</span>
</h1>
2024-04-16 16:25:21 -04:00
</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>
)
}