import { ActionHandleStrategy } from '../action-handle-strategy.abstract';
/**
 * Update the language or content of code block strategy.
 */
export class UpdateCodeBlockStrategy extends ActionHandleStrategy {
  /**
   * @inheritDoc
   */
  handleAction(action, target) {
    const { content, language } = action;
    target.language = language;
    target.text = content;
  }
}
