UNPKG

@aliretail/react-materials-components

Version:
27 lines (21 loc) 880 B
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; var _dec, _class; import * as React from 'react'; import cls from 'classnames'; import { layout } from "../../factory/index"; import { COMPONENT_NAME } from "../../factory/static"; export var Container = (_dec = layout('Container', 'content'), _dec(_class = /*#__PURE__*/function (_React$Component) { _inheritsLoose(Container, _React$Component); function Container() { return _React$Component.apply(this, arguments) || this; } var _proto = Container.prototype; _proto.render = function render() { var className = this.props.className; return /*#__PURE__*/React.createElement("div", { className: cls('aliretail-page-layout-container', className), "data-name": COMPONENT_NAME + "Container" }, this.props.children); }; return Container; }(React.Component)) || _class);