import {Component, Input} from '@angular/core';
import {Dialog} from 'primeng/dialog';
import {PostHomeComponent} from '../../post-home/post-home.component';
import {Post} from '../../../models/post';

@Component({
  selector: 'app-preview-modal',
  standalone: true,
  imports: [
    Dialog,
    PostHomeComponent
  ],
  templateUrl: './preview-modal.component.html',
  styleUrl: './preview-modal.component.css'
})
export class PreviewModalComponent {
  opened: boolean = true;
  @Input({required: true}) post: Post | undefined;
  @Input() username: string = '';
  @Input() profilePicture: string = '';
}
