"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.CustomDialog = CustomDialog;
exports.default = void 0;

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));

var _react = _interopRequireDefault(require("react"));

var _styles = require("@material-ui/core/styles");

var _core = require("@material-ui/core");

var useStyles = function useStyles(props) {
  return (0, _styles.makeStyles)(function (theme) {
    return {
      dialogContent: {
        paddingTop: 0
      }
    };
  });
};

function CustomDialog(_ref) {
  var children = _ref.children,
      props = (0, _objectWithoutProperties2.default)(_ref, ["children"]);
  var classes = useStyles(props)();
  return /*#__PURE__*/_react.default.createElement(_core.Dialog, {
    open: props.open,
    onClose: props.handleClose,
    "aria-labelledby": "alert-dialog-title",
    "aria-describedby": "alert-dialog-description"
  }, /*#__PURE__*/_react.default.createElement(_core.DialogTitle, {
    id: "alert-dialog-title"
  }, props.title), /*#__PURE__*/_react.default.createElement(_core.DialogContent, {
    className: classes.dialogContent
  }, children), props.actions ? /*#__PURE__*/_react.default.createElement(_core.DialogActions, null, props.actions) : null);
}

var _default = CustomDialog;
exports.default = _default;