UNPKG

replyke-rn

Version:

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

24 lines 1.6 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var jsx_runtime_1 = require("react/jsx-runtime"); var replyke_core_1 = require("replyke-core"); var __1 = require(".."); var CommentOptionsSheet_1 = __importDefault(require("../../shared/sheets/CommentOptionsSheet")); var ReportCommentSheet_1 = __importDefault(require("../../shared/sheets/ReportCommentSheet")); function useSocialComments(_a) { var entityId = _a.entityId, styleConfig = _a.styleConfig, callbacks = _a.callbacks, defaultSortBy = _a.defaultSortBy, limit = _a.limit, highlightedCommentId = _a.highlightedCommentId; return { CommentSectionProvider: function (_a) { var children = _a.children; return ((0, jsx_runtime_1.jsx)(replyke_core_1.CommentSectionProvider, { entityId: entityId, callbacks: callbacks, defaultSortBy: defaultSortBy, limit: limit, highlightedCommentId: highlightedCommentId, children: (0, jsx_runtime_1.jsx)(replyke_core_1.SocialStyleConfigProvider, { styleConfig: styleConfig, children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [children, (0, jsx_runtime_1.jsx)(CommentOptionsSheet_1.default, {}), (0, jsx_runtime_1.jsx)(ReportCommentSheet_1.default, {})] }) }) })); }, CommentsFeed: __1.CommentsFeed, NewCommentForm: __1.NewCommentForm, SortByButton: __1.SortByButton, }; } exports.default = useSocialComments; //# sourceMappingURL=useSocialComments.js.map