You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
501 B

  1. <script setup lang="ts">
  2. import { SearchModal } from "./components";
  3. import { useBoolean } from "../../hooks/useBoolean";
  4. import Search from "@iconify-icons/ep/search";
  5. const { bool: show, toggle } = useBoolean();
  6. function handleSearch() {
  7. toggle();
  8. }
  9. </script>
  10. <template>
  11. <div
  12. class="search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover"
  13. @click="handleSearch"
  14. >
  15. <IconifyIconOffline :icon="Search" />
  16. </div>
  17. <SearchModal v-model:value="show" />
  18. </template>