"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _tslib = require("tslib");
var _react = _interopRequireDefault(require("react"));
var _vtxBaseModal = _interopRequireDefault(require("../vtx-base-modal"));
var _vmTable = _interopRequireDefault(require("../vm-table"));
require("./style");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function VmModalTable(props) {
  var _props$visible = props.visible,
    visible = _props$visible === void 0 ? false : _props$visible,
    onCancel = props.onCancel,
    _props$columns = props.columns,
    columns = _props$columns === void 0 ? [] : _props$columns,
    _props$dataSource = props.dataSource,
    dataSource = _props$dataSource === void 0 ? [] : _props$dataSource,
    extra = (0, _tslib.__rest)(props, ["visible", "onCancel", "columns", "dataSource"]);
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, visible && (/*#__PURE__*/_react["default"].createElement(_vtxBaseModal["default"], Object.assign({
    visible: visible,
    footer: null,
    onCancel: onCancel
  }, extra), /*#__PURE__*/_react["default"].createElement(_vmTable["default"], {
    columns: columns,
    rowKey: "id",
    height: 300,
    dataSource: dataSource
  }))));
}
var _default = exports["default"] = VmModalTable;
//# sourceMappingURL=index.js.map
