added the search button for the AI
Build & Auto-Repair / build (push) Has been cancelled

This commit is contained in:
Ace
2026-07-01 12:29:06 +02:00
parent 16710e3019
commit b2bb6d94f5
+11
View File
@@ -71,6 +71,17 @@ export function JobSelector({ onSelect, onSearch, searching }: JobSelectorProps)
</div>
</>
)}
{selected && onSearch && (
<button
type="button"
onClick={() => onSearch(selected)}
disabled={searching}
className="w-full flex items-center justify-center gap-2 mt-3 bg-gradient-to-r from-[#f97316] to-[#ea580c] hover:from-[#ea580c] hover:to-[#dc2626] disabled:opacity-50 disabled:cursor-not-allowed text-white text-sm font-semibold rounded-xl px-4 py-3 transition-all duration-200 shadow-lg shadow-[#f97316]/20"
>
{searching ? <Loader2 className="h-4 w-4 animate-spin" /> : <Search className="h-4 w-4" />}
{searching ? "Searching..." : "Search Facebook"}
</button>
)}
</div>
)
}