UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

16 lines 900 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommentSectionProvider = exports.CommentSectionContext = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const react_1 = require("react"); const useCommentSectionData_1 = __importDefault(require("../hooks/comments/useCommentSectionData")); exports.CommentSectionContext = (0, react_1.createContext)({}); const CommentSectionProvider = ({ children, ...restOfProps }) => { const data = (0, useCommentSectionData_1.default)(restOfProps); return ((0, jsx_runtime_1.jsx)(exports.CommentSectionContext.Provider, { value: data, children: children })); }; exports.CommentSectionProvider = CommentSectionProvider; //# sourceMappingURL=comment-section-context.js.map