pleroma/app/soapbox/api/hooks/streaming/useNostrStream.ts

11 lines
329 B
TypeScript
Raw Normal View History

2023-07-22 10:49:02 -07:00
import { useFeatures } from 'soapbox/hooks';
import { useTimelineStream } from './useTimelineStream';
function useNostrStream() {
const features = useFeatures();
const enabled = features.nostrSign && Boolean(window.nostr);
return useTimelineStream('nostr', 'nostr', null, null, { enabled });
}
export { useNostrStream };