UNPKG

@mskcc/carbon-react

Version:

Carbon react components for the MSKCC DSM

45 lines (41 loc) 1.06 kB
/** * MSKCC 2021, 2024 */ import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js'; import * as React from 'react'; import PropTypes from 'prop-types'; const BaseLayout = props => { const { className, children, header, footer, ...rest } = props; const containerClassName = `msk-galaxy ${className || ''}`.trim(); return /*#__PURE__*/React.createElement("div", _extends({ className: containerClassName }, rest), /*#__PURE__*/React.createElement("div", { className: "msk-world" }, header, children), footer); }; BaseLayout.displayName = 'BaseLayout'; BaseLayout.propTypes = { /** * For best experience, use the <PageLayout> component inside this component */ children: PropTypes.node, /** * Add custom class to the outside container */ className: PropTypes.string, /** * Specify the contents of the footer */ footer: PropTypes.node, /** * Specify the contents of the header */ header: PropTypes.node }; export { BaseLayout, BaseLayout as default };