Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
at main 14 lines 431 B view raw
1import type { MetadataLicenseType } from "@hey/indexer"; 2import { createTrackedStore } from "@/store/createTrackedStore"; 3 4interface State { 5 license: MetadataLicenseType | null; 6 setLicense: (license: MetadataLicenseType | null) => void; 7} 8 9const { useStore: usePostLicenseStore } = createTrackedStore<State>((set) => ({ 10 license: null, 11 setLicense: (license) => set(() => ({ license })) 12})); 13 14export { usePostLicenseStore };