Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
1import { createTrackedStore } from "./createTrackedStore";
2
3interface ToggleStore {
4 show: boolean;
5 setShow: (show: boolean) => void;
6}
7
8export const createToggleStore = (initial = false) =>
9 createTrackedStore<ToggleStore>((set) => ({
10 setShow: (show) => set({ show }),
11 show: initial
12 }));