var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Blog=void 0;var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _react=_interopRequireDefault(require("react"));var _primitives=require("../../primitives");var _H=require("../H1");var _H2=require("../H2");var _H3=require("../H3");var _H4=require("../H4");var _H5=require("../H5");var _UL=require("../UL");var _LI=require("../LI");var _BlockQuote=require("../BlockQuote");var _InlineCode=require("../InlineCode");var _CodePreview=require("../CodePreview");var _OL=_interopRequireDefault(require("../OL"));var _LayoutContent=require("../Layout/LayoutContent");var _jsxRuntime=require("react/jsx-runtime");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){(0,_defineProperty2.default)(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}var Blog=_react.default.forwardRef(function(_ref){var children=_ref.children,MDXProvider=_ref.MDXProvider;return(0,_jsxRuntime.jsx)(_primitives.Box,{flex:1,mt:20,flexDirection:"row",width:"85%",maxWidth:1440,mx:"auto",children:(0,_jsxRuntime.jsx)(MDXProvider,{components:{h1:function h1(props){return(0,_jsxRuntime.jsx)(_H.H1,_objectSpread({mt:8,mb:20,lineHeight:64,fontSize:52},props));},h2:function h2(props){return(0,_jsxRuntime.jsx)(_H2.H2,_objectSpread({mt:-58,pt:84,mb:6,fontSize:24},props));},h3:function h3(props){return(0,_jsxRuntime.jsx)(_H3.H3,_objectSpread({mt:-64,pt:84,mb:6,fontSize:20},props));},h4:function h4(props){return(0,_jsxRuntime.jsx)(_H4.H4,_objectSpread({mt:-76,pt:84,mb:"$1"},props));},h5:function h5(props){return(0,_jsxRuntime.jsx)(_H5.H5,_objectSpread({mt:-76,pt:84,mb:"$1"},props));},pre:function pre(props){var _props$children$props,_props$children,_props$children$props2,_props$children2,_props$children2$prop,_props$children2$prop2;return(0,_jsxRuntime.jsx)(_CodePreview.CodePreview,_objectSpread({metaData:{code:`${(_props$children$props=props==null?void 0:(_props$children=props.children)==null?void 0:(_props$children$props2=_props$children.props)==null?void 0:_props$children$props2.children)!=null?_props$children$props:''}`},language:props==null?void 0:(_props$children2=props.children)==null?void 0:(_props$children2$prop=_props$children2.props)==null?void 0:(_props$children2$prop2=_props$children2$prop.className)==null?void 0:_props$children2$prop2.split('language-')[1],showArgsController:false,showComponentRenderer:false,h:"max-content",mb:"$6",w:"$full",mt:'$1'},props.children.props));},ul:function ul(props){return(0,_jsxRuntime.jsx)(_UL.UL,_objectSpread({mb:12,w:"$full"},props));},ol:function ol(props){return(0,_jsxRuntime.jsx)(_OL.default,_objectSpread({mb:12},props));},li:function li(props){return(0,_jsxRuntime.jsx)(_LI.LI,_objectSpread(_objectSpread({w:"$full"},props),{},{children:props==null?void 0:props.children}));},p:function p(props){return(0,_jsxRuntime.jsx)(_primitives.Text,_objectSpread({mb:2,lineHeight:24,marginTop:4,marginBottom:4,fontFamily:"$body",sx:{color:'$textDark700',_dark:{color:'$textDark300'}}},props));},a:function a(props){return(0,_jsxRuntime.jsx)(_primitives.Link,_objectSpread({isExternal:props.href.includes('ui.gluestack.io')?false:true,lineHeight:24,fontFamily:"$body",color:"$primary600",sx:{'textDecorationColor':'$primary600',':hover':{textDecorationLine:'underline'},'_dark':{color:'$primary400',textDecorationColor:'$primary400'}}},props));},code:function code(props){return(0,_jsxRuntime.jsx)(_InlineCode.InlineCode,{children:props.children});},blockquote:function blockquote(props){return(0,_jsxRuntime.jsx)(_BlockQuote.BlockQuote,_objectSpread(_objectSpread({},props.children[1].props),{},{mb:24,children:(0,_jsxRuntime.jsx)(_primitives.Text,{children:props.children[1].props.children})}));}},children:(0,_jsxRuntime.jsx)(_primitives.Box,{flex:1,children:(0,_jsxRuntime.jsx)(_LayoutContent.LayoutContent,{sx:{'@md':{minWidth:736},'@lg':{minWidth:662,display:'flex'},'@xl':{minWidth:598},'@xxl':{minWidth:736}},height:"$full",w:"$full",children:children})})})});});exports.Blog=Blog;
//# sourceMappingURL=index.js.map