diff --git a/hooks/useSearchModal.ts b/hooks/useSearchModal.ts new file mode 100644 index 0000000..bf79161 --- /dev/null +++ b/hooks/useSearchModal.ts @@ -0,0 +1,15 @@ +import { create } from 'zustand'; + +interface SearchModalStore { + isOpen: boolean; + onOpen: () => void; + onClose: () => void; +} + +const useSearchModal = create((set) => ({ + isOpen: false, + onOpen: () => set({ isOpen: true }), + onClose: () => set({ isOpen: false }) +})); + +export default useSearchModal;