chore: add project files and setup gitignore
This commit is contained in:
20
reserva-mesa-dashboard/components/dashboard/UserNav.tsx
Normal file
20
reserva-mesa-dashboard/components/dashboard/UserNav.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
"use client";
|
||||
|
||||
import { useAuth } from "@/hooks/useAuth";
|
||||
import { User } from "lucide-react";
|
||||
|
||||
export function UserNav() {
|
||||
const { user } = useAuth();
|
||||
|
||||
return (
|
||||
<div className="flex items-center gap-3">
|
||||
<div className="hidden text-right md:block">
|
||||
<p className="text-sm font-medium text-foreground">{user?.ownerName || "Administrador"}</p>
|
||||
<p className="text-xs text-muted-foreground">{user?.email}</p>
|
||||
</div>
|
||||
<div className="h-10 w-10 rounded-full bg-primary/10 flex items-center justify-center border border-primary/20">
|
||||
<User className="h-5 w-5 text-primary" />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user