import { DefaultFooter } from '@ant-design/pro-components';
import React from 'react';

const PageFooter: React.FC = () => {
  const startYear = 2024;
  const curYear = new Date().getFullYear();
  let yearStr = '';
  if (startYear === curYear) {
    yearStr = curYear.toString();
  } else {
    yearStr = startYear.toString() + ' - ' + curYear.toString();
  }
  return (
    <DefaultFooter
      copyright={yearStr + " EVA Tech"}
      style={{
        background: 'none',
        color: '#808080'
      }}
      links={[
        {
          key: 'EVA Tea',
          title: 'EVA Tea',
          href: 'https://pro.ant.design',
          blankTarget: true,
        },
      ]}
    />
  );
};

export default PageFooter;
