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