import { Component, OnInit } from '@angular/core';
import { DetailsBase } from '@objects-view/details-base';
import { IPredefinedReplyCategoryModel } from '@fleio-api/plugins/tickets/model/predefined-reply-category.model';
import { ActivatedRoute } from '@angular/router';
import { PredefinedRepliesListUiService } from '../predefined-replies-list-ui.service';

@Component({
  selector: 'app-predefined-reply-edit',
  templateUrl: './predefined-reply-edit.component.html',
  styleUrls: ['./predefined-reply-edit.component.scss']
})
export class PredefinedReplyEditComponent extends DetailsBase<IPredefinedReplyCategoryModel> {
  constructor(route: ActivatedRoute, predefinedRepliesListUiService: PredefinedRepliesListUiService) {
    super(route, predefinedRepliesListUiService, 'edit-predefined-reply',
      'category', ['predefinedReply']);
  }
}
