SkillsSection had nine hardcoded English strings (header, filter placeholder/aria-label, empty-state copy, button labels). Move them to skills.* keys in en.ts/zh.ts and swap the component to useT().
28 lines
568 B
TypeScript
28 lines
568 B
TypeScript
import type { AgentRecord, ConnectorRecord, WorkspaceRecord } from "@shared/types";
|
|
import { AgentForm } from "./agent-form";
|
|
|
|
export function AgentCreator({
|
|
companyId,
|
|
connectors,
|
|
workspaces,
|
|
agents,
|
|
onSaved,
|
|
}: {
|
|
companyId: string;
|
|
connectors: ConnectorRecord[];
|
|
workspaces: WorkspaceRecord[];
|
|
agents: AgentRecord[];
|
|
onSaved: () => Promise<void>;
|
|
}) {
|
|
return (
|
|
<AgentForm
|
|
mode="create"
|
|
companyId={companyId}
|
|
connectors={connectors}
|
|
workspaces={workspaces}
|
|
agents={agents}
|
|
onSaved={onSaved}
|
|
/>
|
|
);
|
|
}
|