"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react/jsx-runtime"),r=require("react"),i=require("./CommentsSwitchContext.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e);exports.CommentsSwitchProvider=function(e){var n=e.children,u=e.initial,s=void 0!==u&&u,a=r.useState(s),c=o.default(a,2),l=c[0],d=c[1];return t.jsx(i.CommentsSwitchContext.Provider,{value:{commentsEnabled:l,setCommentsEnabled:d},children:n})};
//# sourceMappingURL=CommentsSwitchProvider.js.map
