"use client"; import { MonitorDot, LayoutDashboard } from "lucide-react"; import { useLang } from "@/lib/language"; const t = { zh: { badge: "产品组成", h2: "两个界面,一套完整体验", subtitle: "客户端是主体验,Manager 是辅助控制台,用户不在网页上编码", products: [ { name: "Heicode 客户端", badge: "主体验", description: "用户的主入口。在本地输入产品想法、继续任务、查看 Agnet 执行反馈、接收交付结果、审批高危操作。登录 Heicode 即可使用,无需配置模型。", features: ["任务驾驶舱", "高危审批", "执行反馈", "本地服务"], }, { name: "Heicode Manager", badge: "辅助控制台", description: "浏览器端辅助控制台。负责账号与安全、客户端下载、Git 与云资源绑定、Agnet 部署、任务状态总览、模型余额与用量、审计与日志查看。", features: ["资源绑定", "Agnet 部署", "余额与用量", "审计日志"], }, ], }, en: { badge: "Product Components", h2: "Two interfaces, one complete experience", subtitle: "The client is the main experience, Manager is the auxiliary console", products: [ { name: "Heicode Client", badge: "Main experience", description: "The user's primary entry point. Input product ideas locally, continue tasks, view Agnet execution feedback, receive delivery results, approve high-risk operations. Log in to Heicode — no model configuration needed.", features: ["Task dashboard", "Approval flow", "Exec feedback", "Local service"], }, { name: "Heicode Manager", badge: "Aux console", description: "Browser-based auxiliary console. Handles account & security, client download, Git & cloud resource binding, Agnet deployment, task status overview, model balance & usage, audit & log viewing.", features: ["Resource binding", "Agnet deploy", "Balance & usage", "Audit log"], }, ], }, }; const icons = [MonitorDot, LayoutDashboard]; export function Products() { const { lang } = useLang(); const tx = t[lang]; return (

{tx.badge}

{tx.h2}

{tx.subtitle}

{tx.products.map((product, idx) => { const Icon = icons[idx]; return (
{product.badge}

{product.name}

{product.description}

{product.features.map((feature) => ( {feature} ))}
); })}
); }