import { ModifyContentAction, ModifyContentActionType } from './modify-content-action.abstract';
/**
 * Switch out from the code block and insert new paragraph after code block.
 *
 * @example codeBlock.apply(new SwitchOutFromCodeBlockAction(content, language))
 */
export class SwitchOutFromCodeBlockAction extends ModifyContentAction {
  constructor(content, language) {
    super();
    this.isFlushable = true;
    this.type = ModifyContentActionType.SWITCH_OUT_FROM_CODE_BLOCK;
    this.content = content;
    this.language = language;
  }
}
