import React from 'react';
import { FileSpreadsheet } from 'lucide-react';

interface PageDocToolbarProps {
  onDownloadTestCases: () => void;
}

export function PageDocToolbar({ onDownloadTestCases }: PageDocToolbarProps) {
  return (
    <div className="vm-doc-toolbar" data-annotation-id="vm-doc-toolbar" role="toolbar" aria-label="测试用例">
      <button
        type="button"
        className="vm-doc-toolbar-btn"
        onClick={onDownloadTestCases}
        aria-label="下载测试用例"
      >
        <FileSpreadsheet size={16} aria-hidden />
        下载测试用例
      </button>
    </div>
  );
}
