import React from 'react';
import classNames from 'classnames';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
const GlobalFooter = ({
  className,
  prefixCls = 'ant-pro',
  links,
  copyright,
  style
}) => {
  if ((links == null || links === false || Array.isArray(links) && links.length === 0) && (copyright == null || copyright === false)) {
    return null;
  }
  const baseClassName = `${prefixCls}-global-footer`;
  const clsString = classNames(baseClassName, className);
  return /*#__PURE__*/_jsxs("footer", {
    className: clsString,
    style: style,
    children: [links && /*#__PURE__*/_jsx("div", {
      className: `${baseClassName}-links`,
      children: links.map(link => /*#__PURE__*/_jsx("a", {
        title: link.key,
        target: link.blankTarget ? '_blank' : '_self',
        href: link.href,
        rel: "noreferrer",
        children: link.title
      }, link.key))
    }), copyright && /*#__PURE__*/_jsx("div", {
      className: `${baseClassName}-copyright`,
      children: copyright
    })]
  });
};
export default GlobalFooter;