import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import { Trans, withNamespaces } from 'react-i18next'; import { REPOSITORY, LANGUAGES, PRIVACY_POLICY_LINK } from '../../helpers/constants'; import i18n from '../../i18n'; import Version from './Version'; import './Footer.css'; import './Select.css'; class Footer extends Component { getYear = () => { const today = new Date(); return today.getFullYear(); }; changeLanguage = (event) => { i18n.changeLanguage(event.target.value); }; render() { const { dnsVersion, processingVersion, getVersion, } = this.props; return ( {dnsVersion && (
copyright © {this.getYear()}{' '} AdGuard
)}
); } } Footer.propTypes = { dnsVersion: PropTypes.string, processingVersion: PropTypes.bool, getVersion: PropTypes.func, }; export default withNamespaces()(Footer);