UNPKG

@light-sheet/react

Version:

FortuneSheet is a drop-in javascript spreadsheet library that provides rich features like Excel and Google Sheets

23 lines 596 B
import React from "react"; import Dialog from "../Dialog"; var MessageBox = function MessageBox(_ref) { var _ref$type = _ref.type, type = _ref$type === void 0 ? "yesno" : _ref$type, onOk = _ref.onOk, onCancel = _ref.onCancel, children = _ref.children; return /*#__PURE__*/React.createElement(Dialog, { type: type, onOk: onOk, onCancel: onCancel, contentStyle: { width: 300, paddingTop: 20, paddingBottom: 30, display: "flex", justifyContent: "center", alignItems: "center" } }, children); }; export default MessageBox;