"use client"; import { BotIcon } from "lucide-react"; import { type Agent } from "@/core/agents"; import { desensitize } from "@/lib/desensitize"; import { cn } from "@/lib/utils"; /** * Landing (home) hero shown above the input box before the first message of an * agent conversation: centered avatar, a "Hi,我是{name}" greeting and the * agent's description as a slogan. The description is clamped to two lines * (full text on hover) so a long blurb can never push the input box below the * fold. The agent's 常用问题 are rendered by the page as a list beside the * input box, not here. */ export function AgentWelcome({ className, agent, agentName, }: { className?: string; agent: Agent | null | undefined; agentName: string; }) { const displayName = desensitize(agent?.name ?? agentName); const description = agent?.description ? desensitize(agent.description) : undefined; return (
{description}
)}