setSearchQuery(e.target.value)}
onFocus={() => setIsSearchFocused(true)}
onBlur={() => setIsSearchFocused(false)}
onKeyDown={handleSearchKeyDown}
className="w-full h-9 pl-8 pr-7 bg-white/[0.05] border border-white/10 rounded text-sm font-ui text-white placeholder-white/40 focus:outline-none focus:border-pmr-nhsblue focus:bg-white/[0.10] transition-colors"
/>
{searchQuery && (
)}
{/* Search results dropdown — grouped by section */}
{searchQuery.trim().length >= 2 && groupedResults.size > 0 && (
{Array.from(groupedResults.entries()).map(([sectionLabel, results]) => {
// Find section icon
const navItem = navItems.find(item => item.label === sectionLabel)
return (
{/* Section header */}
{navItem && {navItem.icon}}
{sectionLabel}
({results.length})
{/* Results for this section */}
{results.map((result: FuseResult
) => (
))}
)
})}
)}