"use client"; import type { ExecutorProfile } from "@/lib/types/http"; import type { SecretListItem } from "@/lib/types/http-secrets"; import type { NetworkPolicyRule } from "@/lib/api/domains/settings-api"; import { RemoteCredentialsCard, type GitIdentityMode, type GitIdentityState, } from "@/components/settings/profile-edit/remote-credentials-card"; import { DockerfileBuildCard, DockerContainersCard, } from "@/components/settings/profile-edit/docker-sections"; import { NetworkPoliciesCard } from "@/components/settings/profile-edit/sprites-sections"; import { SpritesInstancesCard } from "@/components/settings/sprites-settings"; type DockerSectionsProps = { profile: ExecutorProfile; dockerfile: string; onDockerfileChange: (v: string) => void; imageTag: string; onImageTagChange: (v: string) => void; }; export function DockerSections({ profile, dockerfile, onDockerfileChange, imageTag, onImageTagChange, }: DockerSectionsProps) { return ( <> ); } type SpritesSectionsProps = { isRemote: boolean; isSprites: boolean; secretId: string | null; networkRules: NetworkPolicyRule[]; onNetworkRulesChange: (rules: NetworkPolicyRule[]) => void; remoteCredentials: string[]; onRemoteCredentialsChange: (ids: string[]) => void; agentEnvVars: Record; onAgentEnvVarChange: (agentId: string, secretId: string | null) => void; gitIdentityMode: GitIdentityMode; onGitIdentityModeChange: (mode: GitIdentityMode) => void; gitUserName: string; gitUserEmail: string; onGitUserNameChange: (value: string) => void; onGitUserEmailChange: (value: string) => void; localGitIdentity: GitIdentityState; secrets: SecretListItem[]; }; export function SpritesSections({ isRemote, isSprites, secretId, networkRules, onNetworkRulesChange, remoteCredentials, onRemoteCredentialsChange, agentEnvVars, onAgentEnvVarChange, gitIdentityMode, onGitIdentityModeChange, gitUserName, gitUserEmail, onGitUserNameChange, onGitUserEmailChange, localGitIdentity, secrets, }: SpritesSectionsProps) { return ( <> {isSprites && secretId && } {isSprites && ( )} ); }