// import { persistentAtom } from '@nanostores/persistent' // import { Reaction, ReactionKind } from '../graphql/types.gen' // import { atom, computed } from 'nanostores' // import { reactionsOrdered } from './zine/reactions' // // interface Draft { // createdAt: Date // body?: string // title?: string // } // // interface Collab { // authors: string[] // slugs // invites?: string[] // createdAt: Date // body?: string // title?: string // } // // const drafts = persistentAtom('drafts', [], { // encode: JSON.stringify, // decode: JSON.parse // }) // save drafts on device // const collabs = atom([]) // // save collabs in backend or in p2p network // const approvals = computed(reactionsOrdered, (rlist) => rlist.filter((r) => r.kind === ReactionKind.Accept)) // const proposals = computed(reactionsOrdered, (rlist) => // rlist.filter((r) => r.kind === ReactionKind.Propose) // ) // // export { drafts, collabs, approvals, proposals } export {}