import React from 'react'; import PropTypes from 'prop-types'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faChartBar, faFileAlt } from '@fortawesome/free-regular-svg-icons'; import { faTree } from '@fortawesome/free-solid-svg-icons'; import { Button } from 'reactstrap'; import LogoMenu from '../shared/LogoMenu'; // Get the css class for the result, step buttons and other general use const getShadingClass = (result) => `result-status-shading-${result}`; export default class Navigation extends React.PureComponent { render() { const { jobExists, result, jobError, jobUrl, rawLogUrl, reftestUrl, collapseDetails, collapseJobDetails, copySelectedLogToBugFiler, } = this.props; const resultStatusShading = getShadingClass(result); return ( ); } } Navigation.propTypes = { jobExists: PropTypes.bool.isRequired, result: PropTypes.string.isRequired, jobError: PropTypes.string.isRequired, rawLogUrl: PropTypes.string.isRequired, jobUrl: PropTypes.string, reftestUrl: PropTypes.string, }; Navigation.defaultProps = { jobUrl: null, reftestUrl: null, };