import React from 'react'; import PropTypes from 'prop-types'; import { noop, Grid, Button, Icon } from 'patternfly-react'; import { sprintf, translate as __ } from 'foremanReact/common/I18n'; import './tabHeader.scss'; const TabHeader = ({ exitCode, onRestart, onDownload, toggleFullScreen }) => (

{sprintf(__('Exit Code: %s'), exitCode)}

{onRestart ? ( ) : null} {onDownload ? ( ) : null}
); TabHeader.propTypes = { onRestart: PropTypes.func, onDownload: PropTypes.func, exitCode: PropTypes.string, toggleFullScreen: PropTypes.func, }; TabHeader.defaultProps = { onRestart: null, exitCode: '', onDownload: null, toggleFullScreen: noop, }; export default TabHeader;