import React from 'react'; import PropTypes from 'prop-types'; import { useHistory } from 'react-router-dom'; import { useI18nContext } from '../../../../hooks/useI18nContext'; import { ADD_POPULAR_CUSTOM_NETWORK } 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('addANetworkManually')}
) : (
{t('networks')}
); }; NetworksFormSubheader.propTypes = { addNewNetwork: PropTypes.bool.isRequired, }; export default NetworksFormSubheader;