"use client"; import { Search, User } from "lucide-react"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { NotificationBell } from "@/components/notifications/NotificationPanel"; import { motion } from "framer-motion"; import { useAuthStore } from "@/lib/stores/authStore"; import { useThemeStore } from "@/lib/stores/themeStore"; export function Navbar() { const { user } = useAuthStore(); const { theme } = useThemeStore(); const isLight = theme === "light"; const displayName = user?.name || "User"; const initials = displayName .split(" ") .map((n) => n[0]) .join("") .toUpperCase() .slice(0, 2); return (
{/* Search */}
⌘K
{/* Right side */}
{/* Notification Bell */} {/* Divider */}
{/* User */}
{displayName} {user?.financial_personality || "Premium"}
{initials || }
); }