import { ModifyContentAction, ModifyContentActionType } from './modify-content-action.abstract';
/**
 * Update the code block content or language action.
 *
 * @example codeNode.apply(new UpdateCodeBlockAction(content, language))
 */
export class UpdateCodeBlockAction extends ModifyContentAction {
  constructor(content, language) {
    super();
    this.isFlushable = true;
    this.type = ModifyContentActionType.UPDATE_CODE_BLOCK;
    this.content = content;
    this.language = language;
  }
}
