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

17 lines
No EOL
314 B
TypeScript

import { useLoggedIn } from 'soapbox/hooks';
import { useTimelineStream } from './useTimelineStream';
function useDirectStream() {
const { isLoggedIn } = useLoggedIn();
return useTimelineStream(
'direct',
'direct',
null,
null,
{ enabled: isLoggedIn },
);
}
export { useDirectStream };