import {Component, Input} from '@angular/core';
import {Button} from 'primeng/button';
import {CardModule} from 'primeng/card';
import {DatePipe} from '@angular/common';
import {RouterLink} from '@angular/router';
import {AvatarModule} from 'primeng/avatar';
import {MatButton, MatFabButton} from '@angular/material/button';

@Component({
  selector: 'app-post-home',
  standalone: true,
  imports: [
    CardModule,
    DatePipe,
    RouterLink,
    AvatarModule,
    Button,
  ],
  templateUrl: './post-home.component.html',
  styleUrl: './post-home.component.css'
})
export class PostHomeComponent {
  @Input() authorProfilePicture: string = '';
  @Input() authorId: string = '';
  @Input() postId: bigint = BigInt(0);
  @Input() title: string = '';
  @Input() illustration: string = '';
  @Input() category: string = '';
  @Input() date: Date | undefined;
  @Input() description: string = '';
  @Input() username: string = '';

  constructor() {}
}
