@if (post) {
  <p-dialog class="preview-dialog"
            header='Prévisualisation de "{{ post.title }}"'
            [modal]="true"
            [(visible)]="opened"
            [closable]="true">
    <app-post-home [title]="post.title"
                   [description]="post.description"
                   [category]="post.category"
                   [date]="post.publicationDate"
                   [illustration]="post.illustration"
                   [authorProfilePicture]="profilePicture"
                   [username]="username"/>
  </p-dialog>
}
