You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
578 B
13 lines
578 B
import type { TLiveActivityItem } from '@/lib/live-activities' |
|
import { createContext } from 'react' |
|
|
|
export type LiveActivitiesContextValue = { |
|
items: TLiveActivityItem[] |
|
loading: boolean |
|
/** NIP-33 `kind:pubkey:d` addresses hidden from the carousel for this browser profile. */ |
|
carouselHiddenAddresses: ReadonlySet<string> |
|
/** Toggle carousel visibility; persists to IndexedDB settings. */ |
|
toggleLiveActivityCarouselHidden: (address: string) => Promise<void> |
|
} |
|
|
|
export const LiveActivitiesContext = createContext<LiveActivitiesContextValue | undefined>(undefined)
|
|
|