UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

28 lines (22 loc) 911 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var tslib_es6 = require('../../../../../node_modules/tslib/tslib.es6.js'); var React = require('react'); var React__default = _interopDefault(React); var styles = require('./styles.js'); /** * @file index.tsx * * @fileoverview A component that places the children in the page frame. With a max width. */ /** * Renders content with a max width on the center of the page. Useful for placing * main content on a normal page. */ const Main = (_a) => { var { size = 'large', children } = _a, props = tslib_es6.__rest(_a, ["size", "children"]); return (React__default.createElement(styles.Main, Object.assign({ size: size }, props), children)); }; exports.Main = Main; exports.default = Main;