navbar changed
This commit is contained in:
14
src/features/auth/login/lib/togle.ts
Normal file
14
src/features/auth/login/lib/togle.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { create } from 'zustand';
|
||||
|
||||
interface LoginModalStore {
|
||||
openLoginModal: boolean;
|
||||
toggleLoginModal: () => void;
|
||||
}
|
||||
|
||||
const useLoginModal = create<LoginModalStore>((set) => ({
|
||||
openLoginModal: false,
|
||||
toggleLoginModal: () =>
|
||||
set((state) => ({ openLoginModal: !state.openLoginModal })),
|
||||
}));
|
||||
|
||||
export { useLoginModal };
|
||||
Reference in New Issue
Block a user