import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
export const INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION = 'INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION';
/**
 * Action class for inserting a new row into a table within the rich text editor.
 */
export class InsertTableRowIntoDifferentSectionAction extends ModifyContentAction {
  /**
   * Constructs an InsertTableRowIntoDifferentSectionAction.
   *
   * @param {InsertTableRowDirection} insertDirection - The direction to insert the new row (above or below the current row).
   * @param {RTETableRowBlock[]} selectedRows - The currently selected rows in the table.
   */
  constructor(insertDirection, selectedRows = []) {
    super();
    this.isFlushable = true;
    this.type = INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION;
    this.selectedRows = [];
    this.insertDirection = insertDirection;
    this.selectedRows = selectedRows;
  }
}
