"use client"; import { IconPlus, IconRoute } from "@tabler/icons-react"; import { useTranslation } from "react-i18next"; import Link from "@/components/routing/app-link"; import { Badge } from "@kandev/ui/badge"; import { Button } from "@kandev/ui/button"; import { Card, CardContent, CardHeader, CardTitle } from "@kandev/ui/card"; import { DisabledBadge } from "@/components/settings/record-badges"; import { useFeature } from "@/hooks/domains/features/use-feature"; import { DYNAMIC_AGENT_NAME } from "@/lib/settings/agent-display-order"; import type { Agent, AgentProfile } from "@/lib/types/http"; import { settingsActionClassName } from "./settings-control"; const dynamicProfileRoute = (profileId: string): string => `/settings/agents/${encodeURIComponent(DYNAMIC_AGENT_NAME)}/profiles/${encodeURIComponent(profileId)}`; function DynamicProfileRow({ profile }: { profile: AgentProfile }) { const { t } = useTranslation(); const candidateCount = profile.dynamic?.candidates.length ?? 0; return (
{t("agents:dynamicAgentsDescription")}
{t("agents:noProfilesYetShort")}
)}