its for when you want to get like notifications for your reposts
1import { AppBskyFeedLike } from "@atcute/bluesky";
2import { ProfileViewDetailed } from "@atcute/bluesky/types/app/actor/defs";
3import { Did } from "@atcute/lexicons";
4
5export interface AppProps {
6 actorIdSignal: [() => string, (value: string) => string];
7 serviceDomainSignal: [() => string, (value: string) => string];
8 items: () => Notification[];
9 clearItems: () => void;
10 connectionStatus: () => ConnectionStatus;
11 error: () => string | null;
12 connect: () => void;
13 disconnect: () => void;
14 // options
15 isExtension: boolean;
16}
17
18export interface Notification {
19 liked: boolean;
20 actor: NotificationActor;
21 record: AppBskyFeedLike.Main;
22 time: number;
23}
24
25export interface NotificationActor {
26 did: Did;
27 profile?: ProfileViewDetailed;
28}
29
30export type ConnectionStatus =
31 | "disconnected"
32 | "connecting..."
33 | "connected"
34 | "error";