"use client"; import Link from "next/link"; import { useTranslations } from "next-intl"; import { cn } from "@/shared/utils/cn"; export type CliConceptType = "code" | "agent" | "acp"; export interface CliConceptCardProps { currentType: CliConceptType; } const TYPE_HREFS: Record = { code: "/dashboard/cli-code", agent: "/dashboard/cli-agents", acp: "/dashboard/acp-agents", }; export default function CliConceptCard({ currentType }: CliConceptCardProps) { const t = useTranslations("cliCommon"); const types: CliConceptType[] = ["code", "agent", "acp"]; return (
{/* Current type — highlighted */}
{t(`concept.${currentType}.title`)}

{t(`concept.${currentType}.phrase`)}

{t(`concept.${currentType}.flow`)}

{/* Other types as chips */}
{types .filter((type) => type !== currentType) .map((type) => ( {t(`concept.${type}.title`)} — {t(`concept.${type}.seeOther`)} ))}
); }