// IMPORT MODULES
import React, { useContext } from "react";
import { LanguageContext } from "../../backend/LanguageContext";
import { Link } from "react-router-dom";

const Footer = () => {
  const date = new Date();
  const { locale } = useContext(LanguageContext);
  return (
    <footer className="footer">
      <div className="container">
        <div className="footer-inner">
          <h2>
            <Link to="/home/topup" style={{ color: "black" }}>
              ©
            </Link>{" "}
            TPTB "HALKBANK", 2013-{date.getFullYear()} All rights reserved |{" "}
            <span>
              {locale === "РУС"
                ? "Политика Конфиденциальности"
                : locale === "TKM"
                ? "Gizlinlik syýasaty"
                : locale === "ENG"
                ? "Confidentiality policy"
                : "Gizlinlik syýasaty"}
            </span>
          </h2>
        </div>
      </div>
    </footer>
  );
};

export default Footer;
