Spaces:
Paused
Paused
| "use client" | |
| import { AiOutlineCamera, AiOutlineSearch } from "react-icons/ai"; | |
| import { usePathname, useRouter, useSearchParams } from "next/navigation"; | |
| export default function SearchHeaderOptions() { | |
| const pathname = usePathname(); | |
| const router = useRouter(); | |
| const searchParams = useSearchParams(); | |
| const searchTerm = searchParams.get("searchTerm"); | |
| function selectTab(tab) { | |
| router.push(`/search/${tab === "Images" ? "image" : "web"}?searchTerm=${searchTerm}`); | |
| } | |
| return ( | |
| <div className="flex space-x-2 select-none border-b w-full justify-center lg:justify-start lg:pl-52 text-gray-700 text-sm"> | |
| </div> | |
| ) | |
| } |