1import { writable } from 'svelte/store';
2import { type NotificationsStream } from './at/client';
3import { SvelteMap } from 'svelte/reactivity';
4import type { Did, ResourceUri } from '@atcute/lexicons';
5import type { Backlink } from './at/constellation';
6// import type { JetstreamSubscription } from '@atcute/jetstream';
7
8export const notificationStream = writable<NotificationsStream | null>(null);
9// export const jetstream = writable<JetstreamSubscription | null>(null);
10
11export type PostActions = {
12 like: Backlink | null;
13 repost: Backlink | null;
14 // reply: Backlink | null;
15 // quote: Backlink | null;
16};
17export const postActions = new SvelteMap<`${Did}:${ResourceUri}`, PostActions>();