import { InsertChildrenBeforeStrategy } from './insert-children-before-strategy';
/**
 * Insert children at the front of the block strategy.
 */
export class InsertChildrenAfterStrategy extends InsertChildrenBeforeStrategy {
  /**
   * @inheritDoc
   */
  handleAction(action, target) {
    this.replaceElementWithElements(target, action.referChildren, [
      action.referChildren,
      ...action.childrenToBeInserted,
    ]);
  }
}
