import React from 'react'; import { Button, Icon } from 'patternfly-react'; import { sprintf, translate as __ } from 'foremanReact/common/I18n'; import './snapshotList.scss'; export const renderListEntryButtons = ( canDelete, canRevert, canUpdate, host, snapshotRollbackAction, snapshotDeleteAction, inlineEditController ) => disabled => (value, additionalData) => { const buttons = []; // Edit Button if (canUpdate) { buttons.push( ); } // Rollback button if (canRevert) { buttons.push( ); } // Delete Button if (canDelete) { buttons.push( ); } return