'use client';

import Link from 'next/link';
import { MessageSquareText, CalendarPlus, FilePlus } from 'lucide-react';

export default function QuickActions() {
  const actions = [
    { label: 'Book Appointment', icon: CalendarPlus, href: '/dashboard/patient/doctors' },
    { label: 'Send Message', icon: MessageSquareText, href: '/dashboard/patient/messages' },
    { label: 'Add Medical Records', icon: FilePlus, href: '/dashboard/patient/medical-records' },
  ];

  return (
    <div className="bg-white p-4 rounded-lg shadow">
      <h3 className="text-lg font-semibold mb-3">Quick Actions</h3>
      <div className="flex flex-wrap gap-2">
        {actions.map(({ label, icon: Icon, href }) => (
          <Link href={href} key={label} passHref>
            <div className="flex items-center gap-2 bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700 transition text-sm cursor-pointer">
              <Icon className="w-4 h-4" />
              {label}
            </div>
          </Link>
        ))}
      </div>
    </div>
  );
}
