profi sayfası
This commit is contained in:
@@ -6,7 +6,12 @@ import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet"
|
||||
import { Sidebar } from "@/components/dashboard/sidebar"
|
||||
import { UserNav } from "@/components/dashboard/user-nav"
|
||||
|
||||
export function DashboardHeader() {
|
||||
interface DashboardHeaderProps {
|
||||
user: { email?: string | null } | null
|
||||
profile: { full_name?: string | null, role?: string | null } | null
|
||||
}
|
||||
|
||||
export function DashboardHeader({ user, profile }: DashboardHeaderProps) {
|
||||
return (
|
||||
<header className="sticky top-0 z-30 flex h-14 items-center gap-4 border-b bg-background px-4 sm:static sm:h-auto sm:border-0 sm:bg-transparent sm:px-6">
|
||||
<Sheet>
|
||||
@@ -28,7 +33,7 @@ export function DashboardHeader() {
|
||||
<div className="w-full flex-1">
|
||||
{/* Breadcrumb or Search could go here */}
|
||||
</div>
|
||||
<UserNav />
|
||||
<UserNav user={user} profile={profile} />
|
||||
</header>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user