import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Radio } from "../../../components/atoms/Radio";
import { Text } from "../../../components/atoms/Text";
export const RadioField = ({ label, name, value, checked, onChange, required = false, error, className = "", }) => {
    return (_jsxs("div", { className: `mb-4 ${className}`, children: [_jsx(Radio, { id: `${name}-${value}`, name: name, value: value, checked: checked, onChange: onChange, label: label, required: required, error: error }), error && (_jsx(Text, { variant: "small", className: "text-error-500 mt-1", children: error }))] }));
};
export default RadioField;
