import { jsx as _jsx } from "react/jsx-runtime";
import { Radio } from '../Radio';
import { Tooltip } from '../Tooltip';
import { StyledFormControlLabel } from './styles';
/**
 * Составной компонент radio. Содержит label, tooltip и т.п.
 */
export const RadioField = ({ id, disabled, label, isError, disabledReason, formControlLabelProps, ...restFieldProps }) => {
    return (_jsx(Tooltip, { title: disabled && disabledReason, placement: "bottom-start", withoutContainer: false, children: _jsx(StyledFormControlLabel, { ...formControlLabelProps, label: label, control: _jsx(Radio, { ...restFieldProps, isError: isError }), disabled: disabled }) }, id));
};
