pleroma/app/soapbox/api/hooks/streaming/useDirectStream.ts
2023-09-16 05:47:11 -05:00

17 lines
No EOL
326 B
TypeScript

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