import PropTypes from 'prop-types'; import React from 'react'; import { Route, Switch, Redirect } from 'react-router-dom'; import { route } from './helpers'; import EmptyPage from './SubTabs/EmptyPage'; import Reports from './SubTabs/Reports'; import ENCPreview from './SubTabs/ENCPreview'; const SecondaryTabRoutes = ({ hostName, hostInfo, status }) => ( {hostName ? ( ) : ( )} {hostName ? ( ) : ( )} ); SecondaryTabRoutes.propTypes = { hostName: PropTypes.string, hostInfo: PropTypes.object, status: PropTypes.string, }; SecondaryTabRoutes.defaultProps = { hostName: '', hostInfo: {}, status: undefined, }; export default SecondaryTabRoutes;