import React from 'react';
import { Download, FileSpreadsheet, FileText } from 'lucide-react';

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

export function PageDocToolbar({
  onOpenRequirements,
  onDownloadPrd,
  onDownloadTestCases,
}: PageDocToolbarProps) {
  return (
    <div className="vm-doc-toolbar" role="toolbar" aria-label="文档与测试用例">
      <button
        type="button"
        className="vm-doc-toolbar-btn"
        onClick={onOpenRequirements}
        aria-label="查看需求说明"
      >
        <FileText size={16} aria-hidden />
        查看需求说明
      </button>
      <button
        type="button"
        className="vm-doc-toolbar-btn"
        onClick={onDownloadPrd}
        aria-label="PRD文档MD文件下载"
      >
        <Download size={16} aria-hidden />
        PRD文档MD文件下载
      </button>
      <button
        type="button"
        className="vm-doc-toolbar-btn"
        onClick={onDownloadTestCases}
        aria-label="下载测试用例"
      >
        <FileSpreadsheet size={16} aria-hidden />
        下载测试用例
      </button>
    </div>
  );
}
