NavbarSearchIcon.tsx 965 B

123456789101112131415161718192021222324252627282930313233343536
  1. "use client";
  2. import { useState } from "react";
  3. import SearchPop from "./SearchPop";
  4. export default function NavbarSearchIcon() {
  5. const [searchOpen, setSearchOpen] = useState(false);
  6. return (
  7. <>
  8. <div
  9. className="w-6 h-6 flex items-center justify-center"
  10. onClick={() => setSearchOpen(true)}
  11. >
  12. <svg
  13. xmlns="http://www.w3.org/2000/svg"
  14. width="17.7802734375"
  15. height="18.7802734375"
  16. viewBox="0 0 17.7802734375 18.7802734375"
  17. fill="none"
  18. >
  19. <circle
  20. cx="8.75"
  21. cy="8.75"
  22. r="8"
  23. stroke="rgba(0, 0, 0, 1)"
  24. strokeWidth="1.5"
  25. ></circle>
  26. <path
  27. stroke="rgba(0, 0, 0, 1)"
  28. strokeWidth="1.5"
  29. d="M14.25 15.25L17.25 18.25"
  30. ></path>
  31. </svg>
  32. </div>
  33. <SearchPop open={searchOpen} onClose={() => setSearchOpen(false)} />
  34. </>
  35. );
  36. }