pleroma/app/soapbox/api/hooks/streaming/useNostrStream.ts
2023-07-22 12:49:02 -05:00

11 lines
No EOL
329 B
TypeScript

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 };