export default function PrescriptionHistory() {
    const prescriptions = [
      { patientName: 'John Doe', medicine: 'Aspirin', date: '2025-04-20' },
      { patientName: 'Jane Smith', medicine: 'Paracetamol', date: '2025-04-18' },
      { patientName: 'George Martin', medicine: 'Ibuprofen', date: '2025-04-15' },
    ];
  
    return (
      <div className="bg-white p-4 rounded-lg shadow">
        <h3 className="text-lg font-semibold mb-3">Prescription History</h3>
        <ul>
          {prescriptions.map((prescription, index) => (
            <li key={index} className="border-b py-2">
              <p><strong>Patient:</strong> {prescription.patientName}</p>
              <p><strong>Medicine:</strong> {prescription.medicine}</p>
              <p><strong>Date:</strong> {prescription.date}</p>
            </li>
          ))}
        </ul>
      </div>
    );
  }
  