import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Prescription } from '../../../../services/prescription.service';

@Component({
  selector: 'app-patient-prescriptions-panel',
  standalone: true,
  imports: [CommonModule],
  templateUrl: './patient-prescriptions-panel.component.html',
  styleUrls: ['./patient-prescriptions-panel.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class PatientPrescriptionsPanelComponent {
  @Input() prescriptions: Prescription[] = [];
  @Input() formatDateFn: (value: string) => string = (value: string) => value;
}

