diff --git a/src/components/ActionBar/ActionBar.jsx b/src/components/ActionBar/ActionBar.jsx index e3eec26..a378f83 100644 --- a/src/components/ActionBar/ActionBar.jsx +++ b/src/components/ActionBar/ActionBar.jsx @@ -1,11 +1,14 @@ import { useSelection } from '../../context/SelectionContext'; import { useScriptGenerator } from '../../hooks/useScriptGenerator'; +import { useSearchContext } from '../../context/SearchContext'; import { useState } from 'react'; import WinDialog from '../Common/WinDialog'; +import { FaSearch } from '../Common/icons'; const ActionBar = () => { const { selectedSoftware, selectedConfigs, clearAll } = useSelection(); const { downloadScript } = useScriptGenerator(); + const { searchTerm, setSearchTerm } = useSearchContext(); const [showClearDialog, setShowClearDialog] = useState(false); const [showDownloadDialog, setShowDownloadDialog] = useState(false); @@ -30,7 +33,7 @@ const ActionBar = () => {
{/* Left: Selection count */} -
+
{totalSelected} items selected @@ -39,8 +42,37 @@ const ActionBar = () => {
+ {/* Center: Search Bar */} +
+
+ + setSearchTerm(e.target.value)} + placeholder="Search catalog..." + style={{ + border: 'none', + outline: 'none', + fontSize: '12px', + fontFamily: 'inherit', + width: '100%', + backgroundColor: 'transparent', + color: 'var(--win95-black)' + }} + /> +
+
+ {/* Right: Action buttons */} -
+