"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormHelperText = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const FormHelperText_1 = __importDefault(require("@mui/material/FormHelperText"));
const FormHelperTextContent_1 = require("./FormHelperTextContent");
const FormHelperText = ({ children, success, error, hideHelperText = false, ...props }) => {
    if (hideHelperText && !children) {
        return null;
    }
    return ((0, jsx_runtime_1.jsx)(FormHelperText_1.default, { ...props, children: (0, jsx_runtime_1.jsx)(FormHelperTextContent_1.FormHelperTextContent, { error: error, success: success, children: children }) }));
};
exports.FormHelperText = FormHelperText;
