import DownloadIcon from "./DownloadIcon";

interface AgreementCardProps {
  originalName: string;
  onDownload: () => void;
}

export default function AgreementCard({ originalName, onDownload }: AgreementCardProps) {
  return (
    <div className="flex items-center justify-between p-4 bg-blue-50 rounded-lg border border-blue-200">
      <div className="flex-1">
        <p className="font-medium text-gray-800">Agreement</p>
        <p className="text-sm text-gray-600">{originalName}</p>
      </div>
      <button
        onClick={onDownload}
        className="px-4 py-2 bg-teal-600 text-white rounded-md hover:bg-teal-700 transition-colors flex items-center gap-2"
      >
        <DownloadIcon />
        Download
      </button>
    </div>
  );
}
