import type { Revision } from '../types'; import { labelOf } from '../lib/fieldLabels'; import { Button } from './ui'; const STATUS_LABEL: Record = { pending: '待审核', approved: '已通过', rejected: '已驳回', }; const STATUS_CLS: Record = { pending: 'tag tag-amber', approved: 'tag tag-green', rejected: 'tag tag-gray', }; export function RevisionList({ revisions, onApprove, onReject, }: { revisions: Revision[]; onApprove?: (id: number) => void; onReject?: (id: number) => void; }) { if (revisions.length === 0) return

暂无修订记录。

; return ( ); }