@e-group/material-layout
Version:
EGroup Team web layout react components.
35 lines (31 loc) • 952 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from 'react';
import clsx from 'clsx';
import { withStyles, createStyles } from '@material-ui/core';
const styles = theme => createStyles({
root: {
backgroundColor: 'rgba(255, 255, 255, 0.7)',
display: 'flex',
position: 'fixed',
left: 0,
top: 0,
right: 0,
bottom: 0,
alignItems: 'center',
justifyContent: 'center',
pointerEvents: 'none',
zIndex: theme.zIndex.modal
}
});
const FixedCenter = (_ref) => {
let classes = _ref.classes,
className = _ref.className,
other = _objectWithoutProperties(_ref, ["classes", "className"]);
return /*#__PURE__*/React.createElement("div", _extends({
className: clsx(classes.root, className)
}, other));
};
export default withStyles(styles, {
name: 'EgFixedCenter'
})(FixedCenter);