import React from 'react';
import FormError from '../FormError';
import { CheckBox, Label, Wrapper, containerStyle } from './styles';
const CheckboxComponent = ({ id, accessibility, label = '', error = '', labelBefore = '', checked = false, onPress = () => { }, style, labelStyle, rightTextStyle, }) => (<FormError id={id || accessibility} accessibility={accessibility} error={error}>
    <Wrapper style={style}>
      <Label {...labelStyle}>{label}</Label>
      <CheckBox testID={`check_${id || accessibility}`} accessibilityLabel={`Check ${accessibility}`} style={containerStyle} isChecked={checked} onClick={onPress}/>
      <Label {...rightTextStyle}>{labelBefore}</Label>
    </Wrapper>
  </FormError>);
export default CheckboxComponent;
//# sourceMappingURL=index.js.map