Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
1import type { AccountFragment } from "@hey/indexer";
2import { createTrackedStore } from "@/store/createTrackedStore";
3
4interface State {
5 showSuperFollowModal: boolean;
6 superFollowingAccount?: AccountFragment;
7 setShowSuperFollowModal: (
8 showSuperFollowModal: boolean,
9 superFollowingAccount?: AccountFragment
10 ) => void;
11}
12
13const { useStore: useSuperFollowModalStore } = createTrackedStore<State>(
14 (set) => ({
15 setShowSuperFollowModal: (showSuperFollowModal, superFollowingAccount) =>
16 set(() => ({ showSuperFollowModal, superFollowingAccount })),
17 showSuperFollowModal: false,
18 superFollowingAccount: undefined
19 })
20);
21
22export { useSuperFollowModalStore };