"use client";
import { jsx as _jsx } from "react/jsx-runtime";
import { EnvVarForm, } from "../environment/EnvVarForm";
/**
 * Compact form that collects environment variable values for an agent.
 *
 * This is a thin wrapper around {@link EnvVarForm} that provides
 * agent-specific defaults: the agent name as the form title, and a
 * contextual description. All rendering, validation, and toggle
 * behavior is delegated to `EnvVarForm`.
 *
 * @example
 * ```tsx
 * <AgentEnvForm
 *   agentName="GitHub Reviewer"
 *   variables={[
 *     { key: "GITHUB_TOKEN", isSecret: true, description: "Personal access token" },
 *     { key: "REPO_OWNER", isSecret: false },
 *   ]}
 *   onSubmit={(values, { saveForFuture }) => {
 *     if (saveForFuture) saveToEnvironment(values);
 *     else useAsRuntimeEnv(values);
 *   }}
 *   onCancel={() => console.log("cancelled")}
 * />
 * ```
 */
export function AgentEnvForm({ agentName, ...rest }) {
    return (_jsx(EnvVarForm, { title: agentName, description: "Enter required credentials to use this agent.", ariaLabel: `Configure ${agentName}`, ...rest }));
}
//# sourceMappingURL=AgentEnvForm.js.map