{
const isActive = results.length > 0 || dirtyInput
- useEffect(() => {
- if (!dirtyInput && searchParams.get("q") && searchParams.get("q") !== "") {
- handleSearch()
- }
- }, [])
-
-
return (
{
: "w-full p-2"
}`}
placeholder={
- isActive
+ !isActive
? "Search for web3 news from the community"
: undefined
}