var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Checkbox=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _reactNativePaper=require("react-native-paper");var _reactNativeComponents=require("@brightlayer-ui/react-native-components");var _themed=require("@brightlayer-ui/react-native-components/themed");var _reactNativeGestureHandler=require("react-native-gesture-handler");var _jsxFileName="/home/circleci/login-workflow/login-workflow/src/components/Checkbox.tsx";var Checkbox=function Checkbox(props){var theme=(0,_reactNativePaper.useTheme)(props.theme);var disabled=props.disabled,onPress=props.onPress,checked=props.checked,label=props.label,style=props.style;var checkedBox=function checkedBox(){if(disabled===true){return;}onPress();};return _react.default.createElement(_reactNative.View,{style:[style,props.disabled?{opacity:0.3}:undefined],__source:{fileName:_jsxFileName,lineNumber:50,columnNumber:9}},_react.default.createElement(_reactNativeGestureHandler.TouchableOpacity,{style:[{flexDirection:'row',alignItems:'center'}],onPress:checkedBox,activeOpacity:1,__source:{fileName:_jsxFileName,lineNumber:51,columnNumber:13}},_react.default.createElement(_themed.ThemedCheckbox.Android,{status:checked?'checked':'unchecked',color:theme.colors.primary,uncheckedColor:theme.colors.primary,__source:{fileName:_jsxFileName,lineNumber:56,columnNumber:17}}),_react.default.createElement(_reactNativeComponents.Body1,{style:{flex:1,marginLeft:4},__source:{fileName:_jsxFileName,lineNumber:61,columnNumber:17}},label)));};exports.Checkbox=Checkbox;
//# sourceMappingURL=Checkbox.js.map