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 selectedDid = writable<Did | null>(null);
9
10export const notificationStream = writable<NotificationsStream | null>(null);
11// export const jetstream = writable<JetstreamSubscription | null>(null);
12
13export type PostActions = {
14 like: Backlink | null;
15 repost: Backlink | null;
16 // reply: Backlink | null;
17 // quote: Backlink | null;
18};
19export const postActions = new SvelteMap<`${Did}:${ResourceUri}`, PostActions>();