import { AnnotationAction } from './annotation-action.abstract';
import { IndentAnnotation } from '../annotations/indent-annotation';
/**
 * Action to toggle block indent annotation
 */
export class IndentAnnotationAction extends AnnotationAction {
  constructor(indent) {
    super();
    this.isFlushable = true;
    this.indent = indent;
  }
  /**
   * Converts the action to an annotation
   *
   * @returns {Annotation} The annotation
   */
  toAnnotation() {
    return new IndentAnnotation(this.indent);
  }
}
