const UIPageActionsButtons = ({ primary, buttons }) => { const className = classNames({ 'ui-page-actions__primary': primary, 'ui-page-actions__secondary': !primary }); const buttonGroupClassName = classNames({ 'button-group': true, 'button-group--right-aligned': primary }); return (
{buttons.map((button, index) => { return React.cloneElement(button, { key: index}); })}
); }; UIPageActionsButtons.propTypes = { primary: React.PropTypes.bool.isRequired, buttons: React.PropTypes.array.isRequired };