added the search button for the AI
This commit is contained in:
@@ -71,6 +71,17 @@ export function JobSelector({ onSelect, onSearch, searching }: JobSelectorProps)
|
|||||||
</div>
|
</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>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user