var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Instruction=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _FormattedText=require("./FormattedText");var _reactNativeComponents=require("@brightlayer-ui/react-native-components");var _themed=require("@brightlayer-ui/react-native-components/themed");var Colors=_interopRequireWildcard(require("@brightlayer-ui/colors"));var _reactNativePaper=require("react-native-paper");var _color=_interopRequireDefault(require("color"));var _jsxFileName="/home/circleci/login-workflow/login-workflow/src/components/Instruction.tsx";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}var makeStyles=function makeStyles(theme){return _reactNative.StyleSheet.create({padding:{paddingTop:16,paddingBottom:32},divider:{height:1,backgroundColor:theme.dark?(0,_color.default)(Colors.black[200]).alpha(0.36).toString():(0,_color.default)(Colors.black[500]).alpha(0.12).toString()},mainText:{}});};var Instruction=function Instruction(props){var text=props.text,style=props.style,_props$hasBottomBorde=props.hasBottomBorder,hasBottomBorder=_props$hasBottomBorde===void 0?true:_props$hasBottomBorde;var theme=(0,_reactNativePaper.useTheme)();var styles=makeStyles(theme);return _react.default.createElement(_react.default.Fragment,null,_react.default.createElement(_reactNative.View,{style:[styles.padding],__source:{fileName:_jsxFileName,lineNumber:61,columnNumber:13}},_react.default.createElement(_reactNativeComponents.Body1,{style:[styles.mainText,style],__source:{fileName:_jsxFileName,lineNumber:62,columnNumber:17}},_react.default.createElement(_FormattedText.FormattedText,{parseableText:text,__source:{fileName:_jsxFileName,lineNumber:63,columnNumber:21}}))),hasBottomBorder&&_react.default.createElement(_themed.ThemedDivider,{style:styles.divider,__source:{fileName:_jsxFileName,lineNumber:66,columnNumber:33}}));};exports.Instruction=Instruction;
//# sourceMappingURL=Instruction.js.map