@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
14 lines (13 loc) • 514 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.useLiveStream = exports.LiveStreamContext = void 0;
const react_1 = require("react");
exports.LiveStreamContext = (0, react_1.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.
*/
function useLiveStream() {
return (0, react_1.useContext)(exports.LiveStreamContext);
}
exports.useLiveStream = useLiveStream;
;