import { Component , OnInit , Input } from '@angular/core' ; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap' ; @ Component ( { selector : 'app-generic-modal' , templateUrl : './generic-modal.component.html' , styleUrls : [ './generic-modal.component.scss' ] } ) export class GenericModalComponent implements OnInit { @ Input ( ) public title = 'Something went wrong' ; @ Input ( ) public body = 'Something went wrong while connecting to the API. Please restart the application.' ; constructor ( public activeModal ) { } ngOnInit ( ) { } }