1 | "use strict";
|
2 |
|
3 | require("core-js/modules/es.object.assign");
|
4 |
|
5 | Object.defineProperty(exports, "__esModule", {
|
6 | value: true
|
7 | });
|
8 | exports["default"] = void 0;
|
9 |
|
10 | var _react = _interopRequireDefault(require("react"));
|
11 |
|
12 | var _addons = require("@storybook/addons");
|
13 |
|
14 | var _parameters = _interopRequireDefault(require("./parameters"));
|
15 |
|
16 | var _styles = _interopRequireDefault(require("./styles"));
|
17 |
|
18 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
19 |
|
20 |
|
21 | function 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 |
|
29 | var _default = (0, _addons.makeDecorator)(Object.assign({}, _parameters["default"], {
|
30 | wrapper: function wrapper(getStory) {
|
31 | return centered(getStory);
|
32 | }
|
33 | }));
|
34 |
|
35 | exports["default"] = _default;
|
36 |
|
37 | if (module && module.hot && module.hot.decline) {
|
38 | module.hot.decline();
|
39 | } |
\ | No newline at end of file |