"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.PageWrapperWithACustomBackground = exports.PageWrapperStory = exports.Documentation = void 0;
var _react = _interopRequireDefault(require("react"));
var _reactMarkdown = _interopRequireDefault(require("react-markdown"));
var _PageWrapper = _interopRequireDefault(require("./PageWrapper.md"));
var _ = require("../..");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = exports.default = {
  title: 'Molecules / PageWrapper',
  parameters: {
    component: _.PageWrapper
  }
};
var Documentation = exports.Documentation = function Documentation() {
  return _react.default.createElement(_.Typography, {
    type: "primary"
  }, _react.default.createElement(_reactMarkdown.default, null, _PageWrapper.default));
};
var PageWrapperStory = exports.PageWrapperStory = {
  render: function render() {
    return _react.default.createElement(_.PageWrapper, null, _react.default.createElement(_.Box, {
      py: 4
    }, _react.default.createElement(_.Typography, {
      type: "primary"
    }, "Page contents inside the PageWrapper can be anything.")));
  },
  name: 'PageWrapper'
};
var PageWrapperWithACustomBackground = exports.PageWrapperWithACustomBackground = {
  render: function render() {
    return _react.default.createElement(_.PageWrapper, {
      background: function background(t) {
        return t.color.background;
      }
    }, _react.default.createElement(_.Box, {
      py: 4
    }, _react.default.createElement(_.Typography, {
      type: "primary"
    }, "Page contents inside the PageWrapper can be anything.")));
  },
  name: 'PageWrapper with a custom background'
};