Something went wrong. Try again.
A Bsky-like frontend using the atprotocol natively.
Something went wrong. Try again.
338 B · 18 lines
TypeScript
at main
12345678910111213141516171819import { createContext } from 'react';
interface ProfileViewerState { activeActor: string | null; open: (actor: string) => void; close: () => void;}
export type { ProfileViewerState };
export const ProfileViewerContext = createContext<ProfileViewerState>({ activeActor: null, open: () => {}, close: () => {},});