import { create } from 'zustand' import { persist } from 'zustand/middleware' interface SearchStore { query: string setQuery: (query: string) => void } const useSearchStore = create()( persist( (set) => ({ query: '', setQuery: (query: string) => set({ query }), }), { name: 'ploogins-search-store', } ) ) export default useSearchStore