import React from 'react';
import { IS_WORDPRESS } from '../../constants';

const ATIBA_URL = IS_WORDPRESS
  ? 'https://atiba.com/'
  : 'https://atiba.com/?utm_source=wpassistant&utm_medium=referral&utm_campaign=wpassistant&utm_id=10219074-wpassistant';

const Footer: React.FC = () => {
  const startYear = 2024;
  const currentYear = new Date().getFullYear();
  const yearDisplay = currentYear > startYear ? `${startYear}-${currentYear}` : startYear;

  return (
    <div className="w-full flex justify-center py-2">
      <span className="text-[0.65rem] text-gray-400 dark:text-gray-500">
        Copyright <a href={ATIBA_URL} className="hover:underline">Atiba</a> {yearDisplay}
      </span>
    </div>
  );
};

export default Footer; 
