/**
 * KRA - Footer Component
 * 页脚组件
 */
import { GithubOutlined } from '@ant-design/icons';
import { DefaultFooter } from '@ant-design/pro-components';
import React from 'react';

const Footer: React.FC = () => {
  const currentYear = new Date().getFullYear();

  return (
    <DefaultFooter
      style={{
        background: 'none',
      }}
      copyright={`${currentYear} Kratos Admin`}
      links={[
        {
          key: 'Kratos Admin',
          title: 'Kratos Admin',
          href: 'https://github.com/go-kratos/kratos',
          blankTarget: true,
        },
        {
          key: 'github',
          title: <GithubOutlined />,
          href: 'https://github.com/go-kratos/kratos',
          blankTarget: true,
        },
        {
          key: 'Kratos',
          title: 'Kratos Framework',
          href: 'https://go-kratos.dev',
          blankTarget: true,
        },
      ]}
    />
  );
};

export default Footer;
