UNPKG

@multiplay/ui

Version:

UI kit for Unity and Multiplay applications

36 lines (26 loc) 895 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _styledComponents = require('styled-components'); var _styledComponents2 = _interopRequireDefault(_styledComponents); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var Container = _styledComponents2.default.div.withConfig({ displayName: 'container__Container', componentId: 'sc-1r686yq-0' })(['width:100%;margin:0 auto;position:relative;max-width:', 'px;padding:', ''], function (props) { return props.width; }, function (props) { return props.padding; }); Container.defaultProps = { padding: '10px', width: 1280 }; Container.propTypes = { padding: _propTypes2.default.string, width: _propTypes2.default.number }; exports.default = Container;