14 lines
No EOL
330 B
TypeScript
14 lines
No EOL
330 B
TypeScript
import { useTimelineStream } from './useTimelineStream';
|
|
|
|
interface UsePublicStreamOpts {
|
|
onlyMedia?: boolean
|
|
}
|
|
|
|
function usePublicStream({ onlyMedia }: UsePublicStreamOpts = {}) {
|
|
return useTimelineStream(
|
|
`public${onlyMedia ? ':media' : ''}`,
|
|
`public${onlyMedia ? ':media' : ''}`,
|
|
);
|
|
}
|
|
|
|
export { usePublicStream }; |