"use strict";

exports.__esModule = true;
exports.SaveToNewViewFooterUniDriver = void 0;
var _unidriver = require("@wix/design-system/dist/testkit/unidriver");
var _unidriver2 = require("../../unidriver");
const SaveToNewViewFooterUniDriver = (base, body) => {
  const footerBase = () => base.$('[data-hook="save-to-new-view-footer"]');
  const saveButton = () => (0, _unidriver.TextButtonUniDriver)(base.$('[data-hook="save-to-new-view"]'), body);
  return {
    ...(0, _unidriver2.baseUniDriverFactory)(base),
    exists: () => footerBase().exists(),
    /** Click the "Save to New View" button */
    clickSaveNewView: () => saveButton().click(),
    /** Get the "Save to New View" TextButton driver */
    getSaveNewViewBtn: () => saveButton()
  };
};
exports.SaveToNewViewFooterUniDriver = SaveToNewViewFooterUniDriver;
//# sourceMappingURL=SaveToNewViewFooter.uni.driver.js.map