import Link from 'next/link';
import { companyInfo } from '@/lib/company';
import InstagramLink from '@/components/ui/InstagramLink';
import styles from './Footer.module.css';

export default function Footer() {
  const currentYear = new Date().getFullYear();
  const instagramUrl = `https://instagram.com/${companyInfo.instagram}`;

  return (
    <footer className={styles.footer}>
      <div className={styles.container}>
        <div className={styles.content}>
          <div className={styles.info}>
            <p className={styles.instagram}>
              Instagram:{' '}
              <Link
                href={instagramUrl}
                target="_blank"
                rel="noopener noreferrer"
                className={styles.instagramLink}
              >
                @{companyInfo.instagram}
              </Link>
            </p>
            <InstagramLink variant="outline" />
          </div>
          <div className={styles.copyright}>
            <p>© {currentYear} {companyInfo.name}</p>
          </div>
        </div>
      </div>
    </footer>
  );
}

