import { ModifyContentAction, ModifyContentActionType } from './modify-content-action.abstract';
/**
 * Transform the selected blocks to a code block.
 *
 * @example firstBlock.parent.apply(new TransformToCodeBlockAction(selectedBlocks))
 */
export class TransformToCodeBlockAction extends ModifyContentAction {
  constructor(selectedBlocks) {
    super();
    this.type = ModifyContentActionType.TRANSFORM_TO_CODE_BLOCK;
    this.selectedBlocks = selectedBlocks;
  }
}
