Files
ftb-project-management/apps/web/components/analysis/AnalysisEntryButton.tsx
1e6fb0c7aa
Some checks failed
Deploy Production / Build, push, deploy, verify (push) Has been cancelled
feat(ai-analysis): 添加详情页智能分析入口
2026-07-09 09:53:34 +08:00

26 lines
622 B
TypeScript

'use client';
import { BarChart3, Sparkles } from 'lucide-react';
export function AnalysisEntryButton({
onClick,
compact = false,
}: {
onClick: () => void;
compact?: boolean;
}) {
const Icon = compact ? BarChart3 : Sparkles;
return (
<button
type="button"
onClick={onClick}
className="inline-flex h-8 items-center gap-1.5 rounded-full border border-[#dbe3ef] bg-white/75 px-3 text-[12px] font-medium text-[#334155] shadow-sm backdrop-blur transition-colors hover:bg-white"
title="智能分析"
>
<Icon className="h-3.5 w-3.5" />
</button>
);
}