feat(ai-analysis): 添加详情页智能分析入口
Some checks failed
Deploy Production / Build, push, deploy, verify (push) Has been cancelled
Some checks failed
Deploy Production / Build, push, deploy, verify (push) Has been cancelled
This commit is contained in:
25
apps/web/components/analysis/AnalysisEntryButton.tsx
Normal file
25
apps/web/components/analysis/AnalysisEntryButton.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
'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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user