import React, { useState } from 'react'; import { useApp } from '../context/AppContext'; import { Bot, Search, SlidersHorizontal, Gift, Bell, User, ChevronDown, CheckCircle, LogOut, Globe, Sparkles } from 'lucide-react'; export const Header = () => { const { searchQuery, setSearchQuery, setIsDetailedSearchOpen, setIsCompanyScannerOpen, setIsAiSpecAnalyzerOpen, userProfile, notifications, setActiveTab, clearAllFilters } = useApp(); const [showNotifications, setShowNotifications] = useState(false); const [showUserMenu, setShowUserMenu] = useState(false); const handleSearchSubmit = (e) => { e.preventDefault(); setActiveTab('list'); }; return (
{/* Logo */}
{ setActiveTab('list'); clearAllFilters(); }} className="flex items-center gap-2.5 cursor-pointer select-none group" >
İhaleist
{/* Search Bar */}
setSearchQuery(e.target.value)} placeholder="İhale, kurum veya İKN no ile arayın..." className="w-full bg-[#374151] text-white placeholder-slate-400 pl-4 pr-10 py-2 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 border border-slate-600 transition-all" /> {searchQuery && ( )}
{/* Right Action Icons */}
{/* Gemini 3.6 Flash PDF Spec Analyzer Button */} {/* Company Web Scanner Button */} {/* Trial Badge */}
{userProfile.trialDaysLeft} gün
{/* Notifications Dropdown */}
{showNotifications && (

Bildirimler

Tümünü Okundu İşaretle
{notifications.map(n => (
{n.title} {n.time}

{n.text}

))}
)}
{/* User Profile */}
{showUserMenu && (

{userProfile.name}

{userProfile.company}

)}
); };