17 lines
No EOL
326 B
TypeScript
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 }; |