20 lines
No EOL
415 B
TypeScript
20 lines
No EOL
415 B
TypeScript
import { useFeatures, useLoggedIn } from 'soapbox/hooks';
|
|
|
|
import { useTimelineStream } from './useTimelineStream';
|
|
|
|
function useNostrStream() {
|
|
const features = useFeatures();
|
|
const { isLoggedIn } = useLoggedIn();
|
|
|
|
return useTimelineStream(
|
|
'nostr',
|
|
'nostr',
|
|
null,
|
|
null,
|
|
{
|
|
enabled: isLoggedIn && features.nostrSign && Boolean(window.nostr),
|
|
},
|
|
);
|
|
}
|
|
|
|
export { useNostrStream }; |