UNPKG

shineout

Version:

Shein 前端组件库

35 lines (28 loc) 1.1 kB
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; import React, { PureComponent } from 'react'; import classnames from 'classnames'; import { cardClass } from './styles'; import { isRTL } from '../config'; var Footer = /*#__PURE__*/ function (_PureComponent) { _inheritsLoose(Footer, _PureComponent); function Footer() { return _PureComponent.apply(this, arguments) || this; } var _proto = Footer.prototype; _proto.render = function render() { var _this$props = this.props, align = _this$props.align, className = _this$props.className, props = _objectWithoutPropertiesLoose(_this$props, ["align", "className"]); var newClassName = classnames(cardClass('footer', align, isRTL() && 'footer-rtl'), className); return React.createElement("div", _extends({}, props, { className: newClassName })); }; return Footer; }(PureComponent); export { Footer as default };