import classNames from 'classnames'; import { PayPalRdb } from './index'; const RadioButtonWithContent = ( { className, id, name, label, description, value, currentValue, handleRdbState, toggleAdditionalContent, children, } ) => { const wrapperClasses = classNames( 'ppcp-r__radio-wrapper', className ); return (
{ description && (

) }

{ toggleAdditionalContent && children && value === currentValue && (
{ children }
) }
); }; export default RadioButtonWithContent;