import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export function ErrorWrapper({ errorId, errorMessage, label, labelId, children, className, labelWrapperClassName, errorClassName, }) {
    return (_jsxs("div", { className: className, children: [
            _jsx("label", { htmlFor: labelId, className: "gd-label", children: label }), _jsxs("div", { className: labelWrapperClassName, children: [children, errorMessage ? (_jsx("span", { id: errorId, className: errorClassName, children: errorMessage })) : null] })
        ] }));
}
