UNPKG

@replyke/core

Version:

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

9 lines 490 B
import { jsx as _jsx } from "react/jsx-runtime"; import { createContext } from "react"; import useCommentSectionData from "../hooks/comments/useCommentSectionData"; export const CommentSectionContext = createContext({}); export const CommentSectionProvider = ({ children, ...restOfProps }) => { const data = useCommentSectionData(restOfProps); return (_jsx(CommentSectionContext.Provider, { value: data, children: children })); }; //# sourceMappingURL=comment-section-context.js.map