@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
10 lines (9 loc) • 333 B
JavaScript
import { createContext, useContext } from 'react';
export const LiveStreamContext = createContext({});
/**
* Let's only export the `useLiveStream` hook instead of the context.
* We only want to use the hook directly and never the context component.
*/
export function useLiveStream() {
return useContext(LiveStreamContext);
}