"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _icons = require("@wii/icons");
var _react = _interopRequireDefault(require("react"));
var _layout = _interopRequireDefault(require("../layout"));
var _GlobalFooter = _interopRequireDefault(require("./components/GlobalFooter"));
var _jsxRuntime = require("react/jsx-runtime");
const {
  Footer
} = _layout.default;
const defaultLinks = [];
const defaultCopyright = '2020 腾讯文旅研发部出品';
const FooterView = ({
  links,
  copyright,
  style,
  className,
  prefixCls
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Footer, {
  className: className,
  style: {
    padding: 0,
    ...style
  },
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GlobalFooter.default, {
    links: links !== undefined ? links : defaultLinks,
    prefixCls: prefixCls,
    copyright: copyright === false ? null : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
      children: ["Copyright ", /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.CopyrightOutlined, {}), " ", copyright || defaultCopyright]
    })
  })
});
var _default = FooterView;
exports.default = _default;