UNPKG

1.05 kBJavaScriptView Raw
1"use strict";
2var __importStar = (this && this.__importStar) || function (mod) {
3 if (mod && mod.__esModule) return mod;
4 var result = {};
5 if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
6 result["default"] = mod;
7 return result;
8};
9Object.defineProperty(exports, "__esModule", { value: true });
10var React = __importStar(require("react"));
11var styles_1 = require("@material-ui/core/styles");
12var dimensions_1 = require("../constants/dimensions");
13var useStyles = styles_1.makeStyles(function (theme) { return ({
14 staticWrapperRoot: {
15 overflow: 'hidden',
16 minWidth: dimensions_1.DIALOG_WIDTH,
17 display: 'flex',
18 flexDirection: 'column',
19 backgroundColor: theme.palette.background.paper,
20 },
21}); }, { name: 'MuiPickersStaticWrapper' });
22exports.StaticWrapper = function (_a) {
23 var children = _a.children;
24 var classes = useStyles();
25 return React.createElement("div", { className: classes.staticWrapperRoot, children: children });
26};