{"ast":null,"code":"import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nfunction _extends() {\n  _extends = Object.assign || function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n    return target;\n  };\n  return _extends.apply(this, arguments);\n}\nimport React from 'react';\nimport Platform from \"react-native-web/dist/exports/Platform\";\nimport { useThemeProps } from \"../../../hooks\";\nimport Box from \"../../primitives/Box\";\nvar Code = function Code(_ref, ref) {\n  var props = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));\n  var _useThemeProps = useThemeProps('Code', props),\n    newProps = Object.assign({}, (_objectDestructuringEmpty(_useThemeProps), _useThemeProps));\n  return React.createElement(Box, _extends({\n    _text: {\n      fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace'\n    }\n  }, newProps, {\n    ref: ref\n  }));\n};\nexport default React.memo(React.forwardRef(Code));","map":{"version":3,"sources":["index.tsx"],"names":["React","useThemeProps","Box","Code","props","ref","newProps","fontFamily","Platform","OS","memo","forwardRef"],"mappings":";;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAAA,OAAA,QAAA;AAEA,SAASC,aAAT;AACA,OAAOC,GAAP;AAGA,IAAMC,IAAI,GAAG,SAAPA,IAAI,CAAA,IAAA,EAA8BE,GAA3B,EAAyC;EAAA,IAAnCD,KAAAA,GAAAA,MAAAA,CAAAA,MAAAA,MAAAA,yBAAAA,CAAAA,IAAAA,GAAAA,IAAAA;EACjB,IAAA,cAAA,GAAsBH,aAAa,CAAC,MAAD,EAASG,KAAT,CAAnC;IAASE,QAAAA,GAAAA,MAAAA,CAAAA,MAAAA,MAAAA,yBAAAA,CAAAA,cAAAA,GAAAA,cAAAA;EAET,OACE,KAAA,CAAA,aAAA,CAAC,GAAD,EAAA,QAAA,CAAA;IACE,KAAK,EAAE;MACLC,UAAU,EAAEC,QAAQ,CAACC,EAATD,KAAgB,KAAhBA,GAAwB,SAAxBA,GAAoC;IAD3C;EADT,CAAA,EAIMF,QAJN,EAAA;IAKE,GAAG,EAAED;EALP,CAAA,CAAA,CADF;AASD,CAZD;AAeA,eAAeL,KAAK,CAACU,IAANV,CAAWA,KAAK,CAACW,UAANX,CAAiBG,IAAjBH,CAAXA,CAAf","sourcesContent":["import React from 'react';\nimport { Platform } from 'react-native';\nimport { useThemeProps } from '../../../hooks';\nimport Box from '../../primitives/Box';\nimport type { ICodeProps } from './types';\n\nconst Code = ({ ...props }: ICodeProps, ref?: any) => {\n  let { ...newProps } = useThemeProps('Code', props);\n\n  return (\n    <Box\n      _text={{\n        fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace',\n      }}\n      {...newProps}\n      ref={ref}\n    />\n  );\n};\n\nexport type { ICodeProps };\nexport default React.memo(React.forwardRef(Code));\n"]},"metadata":{},"sourceType":"module"}