import { Component, input } from '@angular/core';
import { RouterModule } from '@angular/router';

import SharedModule from 'app/shared/shared.module';
import { DurationPipe, FormatMediumDatetimePipe, FormatMediumDatePipe } from 'app/shared/date';
import { IContentPage } from '../content-page.model';

@Component({
  standalone: true,
  selector: 'jhi-content-page-detail',
  templateUrl: './content-page-detail.component.html',
  imports: [SharedModule, RouterModule, DurationPipe, FormatMediumDatetimePipe, FormatMediumDatePipe],
})
export class ContentPageDetailComponent {
  contentPage = input<IContentPage | null>(null);

  previousState(): void {
    window.history.back();
  }
}
