UNPKG

1.04 kBJavaScriptView Raw
1"use strict";
2
3require("core-js/modules/es.object.assign");
4
5Object.defineProperty(exports, "__esModule", {
6 value: true
7});
8exports["default"] = void 0;
9
10var _react = _interopRequireDefault(require("react"));
11
12var _addons = require("@storybook/addons");
13
14var _parameters = _interopRequireDefault(require("./parameters"));
15
16var _styles = _interopRequireDefault(require("./styles"));
17
18function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
20/* eslint-disable import/no-extraneous-dependencies */
21function centered(storyFn) {
22 return _react["default"].createElement("div", {
23 style: _styles["default"].style
24 }, _react["default"].createElement("div", {
25 style: _styles["default"].innerStyle
26 }, storyFn()));
27}
28
29var _default = (0, _addons.makeDecorator)(Object.assign({}, _parameters["default"], {
30 wrapper: function wrapper(getStory) {
31 return centered(getStory);
32 }
33}));
34
35exports["default"] = _default;
36
37if (module && module.hot && module.hot.decline) {
38 module.hot.decline();
39}
\No newline at end of file