"use client"; import React, { useEffect } from 'react'; import { useStore } from '@/lib/store'; import { Sparkles, LayoutGrid, Clock, Settings, User, Sun, Moon } from 'lucide-react'; import { cn } from '@/lib/utils'; import { motion } from 'framer-motion'; import { useTheme } from '@/components/theme-provider'; export function Navbar() { const { currentView, setCurrentView, setSelectionMode } = useStore(); const { theme, setTheme } = useTheme(); const [mounted, setMounted] = React.useState(false); useEffect(() => { setMounted(true); }, []); const toggleTheme = () => { setTheme(theme === 'dark' ? 'light' : 'dark'); }; const navItems = [ { id: 'gallery', label: 'Create', icon: Sparkles }, { id: 'library', label: 'Prompt Library', icon: LayoutGrid }, { id: 'history', label: 'Uploads', icon: Clock }, ]; return ( <>
{/* Visual Highlight Line */}
{/* Logo Area */}
kv-pix
{/* Center Navigation (Desktop) */}
{navItems.map((item) => ( ))}
{/* Right Actions */}
); }