Some checks failed
Deploy Production / Build, push, deploy, verify (push) Has been cancelled
26 lines
622 B
TypeScript
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>
|
|
);
|
|
}
|