"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.ImportButtonUniDriver = ImportButtonUniDriver;
exports.default = void 0;
var _unidriver = require("@wix/design-system/dist/testkit/unidriver");
var _ImportModalUni = _interopRequireDefault(require("./ImportModal.uni.driver"));
function ImportButtonUniDriver(base, body) {
  const getButton = () => (0, _unidriver.ButtonUniDriver)(base, body);
  const importModal = (0, _ImportModalUni.default)(base, body);
  return {
    ...importModal,
    /** Clicks the button to open import modal */
    click: () => getButton().click(),
    /** Indicates whether import button exists in the table toolbar */
    exists: () => getButton().exists()
  };
}
var _default = exports.default = ImportButtonUniDriver;
//# sourceMappingURL=ImportButton.uni.driver.js.map