import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
export const INSERT_FUNCTION_BLOCK = 'INSERT_FUNCTION_BLOCK';
/**
 * Action to insert a function block into the rich text editor.
 *
 * @example focusedBlock.apply(new InsertFunctionBlockAction('IF'))
 * @example host.value.apply(new InsertFunctionBlockAction('IF'))
 */
export class InsertFunctionBlockAction extends ModifyContentAction {
  constructor(functionType) {
    super();
    this.type = INSERT_FUNCTION_BLOCK;
    this.functionType = functionType;
  }
}
