"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const FormError_1 = tslib_1.__importDefault(require("../FormError"));
const styles_1 = require("./styles");
const CheckboxComponent = ({ id, accessibility, label = '', error = '', checked = false, onPress = () => { }, labelStyle, ...rest }) => (<FormError_1.default id={id || accessibility} accessibility={accessibility} error={error}>
    <styles_1.Wrapper accessibility={`checbox de ${label}`} onPress={onPress} {...rest}>
      <styles_1.CheckBox testID={`check_${id || accessibility}`} accessibilityLabel={`Check ${accessibility}`} style={styles_1.containerStyle} isChecked={checked} onClick={onPress}/>
      <styles_1.Label style={labelStyle}>{label}</styles_1.Label>
    </styles_1.Wrapper>
  </FormError_1.default>);
exports.default = CheckboxComponent;
//# sourceMappingURL=index.js.map