feat: add new search dialog
This commit is contained in:
17 files changed
+751
-7
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
type SearchStore = {
|
||||
showSearchDialog: boolean;
|
||||
toggleSearchDialog: () => void;
|
||||
};
|
||||
|
||||
const useSearchStore = create<SearchStore>((set) => ({
|
||||
showSearchDialog: false,
|
||||
toggleSearchDialog: () =>
|
||||
set((state) => ({ showSearchDialog: !state.showSearchDialog })),
|
||||
}));
|
||||
|
||||
export default useSearchStore;
|
||||
Reference in new issue
Block a user