12 lines
334 B
TypeScript
12 lines
334 B
TypeScript
import { useTimelineStream } from './useTimelineStream';
|
|
|
|
interface UseCommunityStreamOpts {
|
|
onlyMedia?: boolean;
|
|
enabled?: boolean;
|
|
}
|
|
|
|
const useCommunityStream = ({ onlyMedia, enabled }: UseCommunityStreamOpts = {}) =>
|
|
useTimelineStream(`public:local${onlyMedia ? ':media' : ''}`, {}, enabled);
|
|
|
|
export { useCommunityStream };
|