import "./Footer.scss";
import logo from "../../shared/assets/logo.svg";
import Link from "next/link";
import Image from "next/image";
import { LINKS } from "@/shared/variables/links";
import youtube from "./icons/youtube.svg";
import facebook from "./icons/facebook.svg";
import instagram from "./icons/instagram.svg";
import app_store_btn from "./icons/app-store-btn.svg";
import play_market_btn from "./icons/play-market-btn.svg";

const Footer = () => {
  return (
    <footer className="footer">
      <Link href="/">
        <Image src={logo} alt="Logo" />
      </Link>
      <div className="footer__links">
        <h4>Навигация</h4>
        <ul>
          {LINKS.map((link) => (
            <li>
              <Link href={link.pathname} key={link.id}>
                {link.pagename}
              </Link>
            </li>
          ))}
        </ul>
      </div>

      <div className="footer__contacts">
        <h4>Контакты</h4>
        <ul>
          <li>namename@gmail.com</li>
          <li>+09646895467</li>
          <li>
            {[youtube, facebook, instagram].map((net) => (
              <Link href="#">
                <Image src={net} alt="Net Icon" key={net} />
              </Link>
            ))}
          </li>
        </ul>
      </div>

      <div className="footer__apps">
        <h4>Скачивай наше приложение</h4>
        <div className="footer__apps-btns">
          {[app_store_btn, play_market_btn].map((app) => (
            <Link href="#">
              <Image src={app} alt="App Button" key={app} />
            </Link>
          ))}
        </div>
      </div>
    </footer>
  );
};

export default Footer;
