import React from 'react'; import PropTypes from 'prop-types'; import { useHistory } from 'react-router-dom'; import { useI18nContext } from '../../../../hooks/useI18nContext'; import { ADD_NETWORK_ROUTE } from '../../../../helpers/constants/routes'; import Button from '../../../../components/ui/button'; const NetworksFormSubheader = ({ addNewNetwork }) => { const t = useI18nContext(); const history = useHistory(); return addNewNetwork ? (
{t('networks')} {' > '}
{t('addANetwork')}
) : (
{t('networks')}
); }; NetworksFormSubheader.propTypes = { addNewNetwork: PropTypes.bool.isRequired, }; export default NetworksFormSubheader;