import { Component } from '@angular/core' ; import { NbDialogRef } from '@nebular/theme' ; @ Component ( { selector : 'ga-delete-confirmation' , template : `
		<nb-card class="center">
			<nb-card-header>
				<h6>{{ 'FORM.CONFIRM' | translate }}</h6>
			</nb-card-header>
			<nb-card-body>
				<span>
					{{ 'FORM.DELETE_CONFIRMATION.SURE' | translate }}
					{{ recordType | translate }}
					{{ 'FORM.DELETE_CONFIRMATION.RECORD' | translate }}?
				</span>
			</nb-card-body>
			<nb-card-footer>
				<button
					(click)="delete()"
					class="mr-3"
					status="danger"
					nbButton
				>
					{{ 'BUTTONS.OK' | translate }}
				</button>
				<button (click)="close()" status="info" nbButton>
					{{ 'BUTTONS.CANCEL' | translate }}
				</button>
			</nb-card-footer>
		</nb-card>
	` , styles : [ `
			nb-card-body {
				text-align: center;
			}

			.center {
				align-items: center;
				width: 300px;
			}
		` ] } ) export class DeleteConfirmationComponent { recordType : string ; constructor ( protected dialogRef ) { } close ( ) { this . dialogRef . close ( ) ; } delete ( ) { this . dialogRef . close ( 'ok' ) ; } }