"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Checkbox = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("@chakra-ui/react");
/**
 * Checkbox component for boolean input
 */
const Checkbox = ({ isInvalid = false, errorMessage, helperText, children, ...rest }) => {
    return ((0, jsx_runtime_1.jsxs)(react_1.FormControl, { isInvalid: isInvalid, mb: 4, children: [(0, jsx_runtime_1.jsx)(react_1.Checkbox, { ...rest, children: children }), isInvalid && errorMessage && (0, jsx_runtime_1.jsx)(react_1.FormErrorMessage, { children: errorMessage }), helperText && !isInvalid && (0, jsx_runtime_1.jsx)(react_1.FormHelperText, { children: helperText })] }));
};
exports.Checkbox = Checkbox;
exports.default = exports.Checkbox;
//# sourceMappingURL=Checkbox.js.map