Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
1import { createTrackedStore } from "@/store/createTrackedStore";
2
3type AuthModalType = "login" | "signup";
4
5interface State {
6 showAuthModal: boolean;
7 authModalType: AuthModalType;
8 setShowAuthModal: (
9 showAuthModal: boolean,
10 authModalType?: AuthModalType
11 ) => void;
12}
13
14const { useStore: useAuthModalStore } = createTrackedStore<State>((set) => ({
15 authModalType: "login",
16 setShowAuthModal: (showAuthModal, authModalType) =>
17 set(() => ({ authModalType, showAuthModal })),
18 showAuthModal: false
19}));
20
21export { useAuthModalStore };